Backport module for sys.audit and sys.addaudithook mechanism
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

15 lines
325 B

import os
from .base import BaseTest
class SubscribeTest(BaseTest):
TEST_FILE_PY = os.path.abspath(
os.path.join(os.path.dirname(__file__), "subscribe-tests.py")
)
def test_basic(self):
self.do_test("test_basic")
def test_multiple_hooks(self):
self.do_test("test_multiple_hooks")