mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
GH-65961: Stop setting __cached__ on modules
This commit is contained in:
parent
e32c975640
commit
28f1334f1a
32 changed files with 93 additions and 240 deletions
|
|
@ -466,17 +466,6 @@ def tearDown(self):
|
|||
"""Restore sys.path"""
|
||||
sys.path[:] = self.sys_path
|
||||
|
||||
def test_abs_paths_cached_None(self):
|
||||
"""Test for __cached__ is None.
|
||||
|
||||
Regarding to PEP 3147, __cached__ can be None.
|
||||
|
||||
See also: https://bugs.python.org/issue30167
|
||||
"""
|
||||
sys.modules['test'].__cached__ = None
|
||||
site.abs_paths()
|
||||
self.assertIsNone(sys.modules['test'].__cached__)
|
||||
|
||||
def test_no_duplicate_paths(self):
|
||||
# No duplicate paths should exist in sys.path
|
||||
# Handled by removeduppaths()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue