mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
GH-107774: Add missing audit event for PEP 669 (GH-107775)
This commit is contained in:
parent
39ef93edb9
commit
494e3d4436
4 changed files with 30 additions and 0 deletions
|
@ -257,5 +257,18 @@ class AuditTest(unittest.TestCase):
|
|||
self.fail(stderr)
|
||||
|
||||
|
||||
def test_sys_monitoring_register_callback(self):
|
||||
returncode, events, stderr = self.run_python("test_sys_monitoring_register_callback")
|
||||
if returncode:
|
||||
self.fail(stderr)
|
||||
|
||||
if support.verbose:
|
||||
print(*events, sep='\n')
|
||||
actual = [(ev[0], ev[2]) for ev in events]
|
||||
expected = [("sys.monitoring.register_callback", "(None,)")]
|
||||
|
||||
self.assertEqual(actual, expected)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue