mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
gh-126018: Avoid aborting due to unnecessary assert in sys.audit
(#126020)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
dc76a4ad3c
commit
80eec52fc8
4 changed files with 20 additions and 1 deletions
|
@ -307,5 +307,12 @@ class AuditTest(unittest.TestCase):
|
|||
|
||||
self.assertEqual(actual, expected)
|
||||
|
||||
def test_assert_unicode(self):
|
||||
# See gh-126018
|
||||
returncode, _, stderr = self.run_python("test_assert_unicode")
|
||||
if returncode:
|
||||
self.fail(stderr)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue