mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Issue #22215: Now ValueError is raised instead of TypeError when str or bytes
argument contains not permitted null character or byte.
This commit is contained in:
parent
4a4b679515
commit
d8a1447c99
14 changed files with 41 additions and 39 deletions
|
@ -147,7 +147,7 @@ class HelperFunctionsTests(unittest.TestCase):
|
|||
re.escape(os.path.join(pth_dir, pth_fn)))
|
||||
# XXX: ditto previous XXX comment.
|
||||
self.assertRegex(err_out.getvalue(), 'Traceback')
|
||||
self.assertRegex(err_out.getvalue(), 'TypeError')
|
||||
self.assertRegex(err_out.getvalue(), 'ValueError')
|
||||
|
||||
def test_addsitedir(self):
|
||||
# Same tests for test_addpackage since addsitedir() essentially just
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue