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
|
|
@ -1443,10 +1443,10 @@ def test_exposed_globals_in_repl(self):
|
|||
case2 = f"{pre}, '__doc__', '__file__', {post}" in output
|
||||
|
||||
# if `__main__` is a cached .pyc file and the .py source exists
|
||||
case3 = f"{pre}, '__cached__', '__doc__', '__file__', {post}" in output
|
||||
case3 = f"{pre}, '__doc__', '__file__', {post}" in output
|
||||
|
||||
# if `__main__` is a cached .pyc file but there's no .py source file
|
||||
case4 = f"{pre}, '__cached__', '__doc__', {post}" in output
|
||||
case4 = f"{pre}, '__doc__', {post}" in output
|
||||
|
||||
self.assertTrue(case1 or case2 or case3 or case4, output)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue