Thanks to visit codestin.com Credit goes to github.com
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.
bad_coding + 'c'
2 parents 5296db9 + 0242f79 commit 04bb443Copy full SHA for 04bb443
1 file changed
Lib/test/test_py_compile.py
@@ -95,7 +95,8 @@ def test_exceptions_propagate(self):
95
def test_bad_coding(self):
96
bad_coding = os.path.join(os.path.dirname(__file__), 'bad_coding2.py')
97
self.assertIsNone(py_compile.compile(bad_coding, doraise=False))
98
- self.assertFalse(os.path.exists(bad_coding + 'c'))
+ self.assertFalse(os.path.exists(
99
+ importlib.util.cache_from_source(bad_coding)))
100
101
if __name__ == "__main__":
102
unittest.main()
0 commit comments