Skip to content

Commit

Permalink
revert test_site.py
Browse files Browse the repository at this point in the history
  • Loading branch information
finnagin authored Jul 17, 2023
1 parent 3ef9e3b commit d02b8d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ def test_addpackage_empty_lines(self):

def test_addpackage_import_bad_pth_file(self):
# Issue 5258
pth_dir, pth_fn = self.make_pth("abc<>$$**:://def\n")
pth_dir, pth_fn = self.make_pth("abc\x00def\n")
with captured_stderr() as err_out:
self.assertFalse(site.addpackage(pth_dir, pth_fn, set()))
self.maxDiff = None
self.assertEqual(err_out.getvalue(), "")
for path in sys.path:
if isinstance(path, str):
self.assertNotIn("abc<>$$**:://def", path)
self.assertNotIn("abc\x00def", path)

def test_addsitedir(self):
# Same tests for test_addpackage since addsitedir() essentially just
Expand Down

0 comments on commit d02b8d4

Please sign in to comment.