summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-11-09 15:10:26 (GMT)
committerGitHub <noreply@github.com>2023-11-09 15:10:26 (GMT)
commit3e7e39c9777c21ea32e3deb29f6e5c96e416bb35 (patch)
treef6bd746cd7d50a2573527942c170616dad06cd52 /Lib
parent409a0ac8e5e6505400df7a686e8aa1b694006cea (diff)
downloadcpython-3e7e39c9777c21ea32e3deb29f6e5c96e416bb35.zip
cpython-3e7e39c9777c21ea32e3deb29f6e5c96e416bb35.tar.gz
cpython-3e7e39c9777c21ea32e3deb29f6e5c96e416bb35.tar.bz2
[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 0c42f7304a2757fe0f78bc6c6fbb33225cd9da15) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_module/__init__.py2
-rw-r--r--Lib/test/test_module/final_a.py (renamed from Lib/test/final_a.py)4
-rw-r--r--Lib/test/test_module/final_b.py (renamed from Lib/test/final_b.py)4
3 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_module/__init__.py b/Lib/test/test_module/__init__.py
index c2bca45..b470dfc 100644
--- a/Lib/test/test_module/__init__.py
+++ b/Lib/test/test_module/__init__.py
@@ -268,7 +268,7 @@ a = A(destroyed)"""
def test_module_finalization_at_shutdown(self):
# Module globals and builtins should still be available during shutdown
- rc, out, err = assert_python_ok("-c", "from test import final_a")
+ rc, out, err = assert_python_ok("-c", "from test.test_module import final_a")
self.assertFalse(err)
lines = out.splitlines()
self.assertEqual(set(lines), {
diff --git a/Lib/test/final_a.py b/Lib/test/test_module/final_a.py
index 390ee88..a983f31 100644
--- a/Lib/test/final_a.py
+++ b/Lib/test/test_module/final_a.py
@@ -3,7 +3,7 @@ Fodder for module finalization tests in test_module.
"""
import shutil
-import test.final_b
+import test.test_module.final_b
x = 'a'
@@ -11,7 +11,7 @@ class C:
def __del__(self):
# Inspect module globals and builtins
print("x =", x)
- print("final_b.x =", test.final_b.x)
+ print("final_b.x =", test.test_module.final_b.x)
print("shutil.rmtree =", getattr(shutil.rmtree, '__name__', None))
print("len =", getattr(len, '__name__', None))
diff --git a/Lib/test/final_b.py b/Lib/test/test_module/final_b.py
index 7228d82..f3e8d55 100644
--- a/Lib/test/final_b.py
+++ b/Lib/test/test_module/final_b.py
@@ -3,7 +3,7 @@ Fodder for module finalization tests in test_module.
"""
import shutil
-import test.final_a
+import test.test_module.final_a
x = 'b'
@@ -11,7 +11,7 @@ class C:
def __del__(self):
# Inspect module globals and builtins
print("x =", x)
- print("final_a.x =", test.final_a.x)
+ print("final_a.x =", test.test_module.final_a.x)
print("shutil.rmtree =", getattr(shutil.rmtree, '__name__', None))
print("len =", getattr(len, '__name__', None))