Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3e7e39c

Browse filesBrowse 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 <mail@sobolevn.me>
1 parent 409a0ac commit 3e7e39c
Copy full SHA for 3e7e39c

File tree

3 files changed

+5
-5
lines changed
Filter options

3 files changed

+5
-5
lines changed

‎Lib/test/test_module/__init__.py

Copy file name to clipboardExpand all lines: Lib/test/test_module/__init__.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: Lib/test/test_module/final_a.py
+2-2Lines changed: 2 additions & 2 deletions
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

Copy file name to clipboardExpand all lines: Lib/test/test_module/final_b.py
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.