Skip to content
Prev Previous commit
Next Next commit
Fail test_assert_unicode if no exception is raised by sys.audit(9) (t…
…hanks @JelleZijlstra).
  • Loading branch information
devdanzin committed Oct 27, 2024
commit 57cc87c3c935320e7a5db10f46a4f4ec1c0e12d3
2 changes: 2 additions & 0 deletions Lib/test/audit-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,8 @@ def test_assert_unicode():
sys.audit(9)
except TypeError:
pass
Comment thread
devdanzin marked this conversation as resolved.
Comment thread
devdanzin marked this conversation as resolved.
else:
raise RuntimeError("Expected sys.audit(9) to fail.")


if __name__ == "__main__":
Expand Down