summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-05 21:59:35 (GMT)
committerGitHub <noreply@github.com>2023-10-05 21:59:35 (GMT)
commitbb057b337008626139d97269485b1dddf70ae427 (patch)
tree72f3c3f1a9de9e5aff9926aba7c4def0c1053c44 /Lib/test
parentaaf297c048694cd9652790f8b74e69f7ddadfbde (diff)
downloadcpython-bb057b337008626139d97269485b1dddf70ae427.zip
cpython-bb057b337008626139d97269485b1dddf70ae427.tar.gz
cpython-bb057b337008626139d97269485b1dddf70ae427.tar.bz2
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().
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_embed.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py
index dc476ef..46c9b03 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -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")