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 cd602b8 commit d4c76d9Copy full SHA for d4c76d9
1 file changed
Lib/test/test_site.py
@@ -389,6 +389,17 @@ def test_abs_paths(self):
389
"expected absolute path, got {}"
390
.format(os__cached__.decode('ascii')))
391
392
+ def test_abs_paths_cached_None(self):
393
+ """Test for __cached__ is None.
394
+
395
+ Regarding to PEP 3147, __cached__ can be None.
396
397
+ See also: https://bugs.python.org/issue30167
398
+ """
399
+ sys.modules['test'].__cached__ = None
400
+ site.abs_paths()
401
+ self.assertIsNone(sys.modules['test'].__cached__)
402
403
def test_no_duplicate_paths(self):
404
# No duplicate paths should exist in sys.path
405
# Handled by removeduppaths()
0 commit comments