Skip to content

Commit 3e7e39c

Browse files
[3.11] gh-108303: Move more files to Lib/test/test_module (GH-111880) (#111892)
gh-108303: Move more files to `Lib/test/test_module` (GH-111880) (cherry picked from commit 0c42f73) Co-authored-by: Nikita Sobolev <[email protected]>
1 parent 409a0ac commit 3e7e39c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Lib/test/test_module/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def test_module_repr_source(self):
268268

269269
def test_module_finalization_at_shutdown(self):
270270
# Module globals and builtins should still be available during shutdown
271-
rc, out, err = assert_python_ok("-c", "from test import final_a")
271+
rc, out, err = assert_python_ok("-c", "from test.test_module import final_a")
272272
self.assertFalse(err)
273273
lines = out.splitlines()
274274
self.assertEqual(set(lines), {

Lib/test/final_a.py renamed to Lib/test/test_module/final_a.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"""
44

55
import shutil
6-
import test.final_b
6+
import test.test_module.final_b
77

88
x = 'a'
99

1010
class C:
1111
def __del__(self):
1212
# Inspect module globals and builtins
1313
print("x =", x)
14-
print("final_b.x =", test.final_b.x)
14+
print("final_b.x =", test.test_module.final_b.x)
1515
print("shutil.rmtree =", getattr(shutil.rmtree, '__name__', None))
1616
print("len =", getattr(len, '__name__', None))
1717

Lib/test/final_b.py renamed to Lib/test/test_module/final_b.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"""
44

55
import shutil
6-
import test.final_a
6+
import test.test_module.final_a
77

88
x = 'b'
99

1010
class C:
1111
def __del__(self):
1212
# Inspect module globals and builtins
1313
print("x =", x)
14-
print("final_a.x =", test.final_a.x)
14+
print("final_a.x =", test.test_module.final_a.x)
1515
print("shutil.rmtree =", getattr(shutil.rmtree, '__name__', None))
1616
print("len =", getattr(len, '__name__', None))
1717

0 commit comments

Comments
 (0)