Skip to content

Commit

Permalink
Tweak test names
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Jan 29, 2024
1 parent 1feabb0 commit eaf08ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Lib/test/test_import/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ def test_script_shadowing_third_party(self):
stdout, stderr = popen.communicate()
self.assertRegex(stdout, expected_error)

def test_script_possibly_shadowing(self):
def test_script_maybe_not_shadowing_third_party(self):
with os_helper.temp_dir() as tmp:
with open(os.path.join(tmp, "numpy.py"), "w", encoding='utf-8') as f:
f.write("this_script_does_not_attempt_to_import_numpy = True")
Expand All @@ -854,8 +854,7 @@ def test_script_possibly_shadowing(self):
stdout, stderr = popen.communicate()
self.assertRegex(stdout, expected_error)


def test_shadowing_stdlib_sys_edge_cases(self):
def test_script_shadowing_stdlib_edge_cases(self):
with os_helper.temp_dir() as tmp:
with open(os.path.join(tmp, "collections.py"), "w", encoding='utf-8') as f:
f.write("shadowing_module = True")
Expand Down

0 comments on commit eaf08ac

Please sign in to comment.