Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69d44fd

Browse files
author
Charles-François Natali
committed
test_import: test_execute_bit_not_copied() was actually a no-op: fix it.
1 parent bc91b46 commit 69d44fd

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Lib/test/test_import.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,9 @@ def test_execute_bit_not_copied(self):
112112
if not os.path.exists(fn):
113113
self.fail("__import__ did not result in creation of "
114114
"either a .pyc or .pyo file")
115-
s = os.stat(fn)
116-
self.assertEqual(
117-
stat.S_IMODE(s.st_mode),
118-
stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
115+
s = os.stat(fn)
116+
self.assertEqual(stat.S_IMODE(s.st_mode),
117+
stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
119118
finally:
120119
del sys.path[0]
121120
remove_files(TESTFN)

0 commit comments

Comments
 (0)