We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af68262 commit a3588e0Copy full SHA for a3588e0
tests/test_utils.py
@@ -3,6 +3,7 @@
3
4
import unittest
5
import os
6
+import sys
7
8
try:
9
from utils import *
@@ -95,7 +96,10 @@ def checkFilePermissions(dir_path):
95
96
path = os.path.join(dir_path, file)
97
if os.path.isfile(path):
98
permission = oct(os.stat(path).st_mode)
- self.assertEqual(permission, '0o100644')
99
+ if sys.version_info >= (2, 7, 9):
100
+ self.assertEqual(permission, '0o100644')
101
+ else :
102
+ self.assertEqual(permission, '0100644')
103
else:
104
checkFilePermissions(path)
105
0 commit comments