mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
gh-85283: Add PySys_AuditTuple() function (#108965)
sys.audit() now has assertions to check that the event argument is not NULL and that the format argument does not use the "N" format. Add tests on PySys_AuditTuple().
This commit is contained in:
parent
aaf297c048
commit
bb057b3370
7 changed files with 109 additions and 9 deletions
|
@ -1716,6 +1716,9 @@ class AuditingTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
def test_audit(self):
|
||||
self.run_embedded_interpreter("test_audit")
|
||||
|
||||
def test_audit_tuple(self):
|
||||
self.run_embedded_interpreter("test_audit_tuple")
|
||||
|
||||
def test_audit_subinterpreter(self):
|
||||
self.run_embedded_interpreter("test_audit_subinterpreter")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue