Skip to content

Commit a3588e0

Browse files
committed
Update test_utils.py
1 parent af68262 commit a3588e0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import unittest
55
import os
6+
import sys
67

78
try:
89
from utils import *
@@ -95,7 +96,10 @@ def checkFilePermissions(dir_path):
9596
path = os.path.join(dir_path, file)
9697
if os.path.isfile(path):
9798
permission = oct(os.stat(path).st_mode)
98-
self.assertEqual(permission, '0o100644')
99+
if sys.version_info >= (2, 7, 9):
100+
self.assertEqual(permission, '0o100644')
101+
else :
102+
self.assertEqual(permission, '0100644')
99103
else:
100104
checkFilePermissions(path)
101105

0 commit comments

Comments
 (0)