Skip to content

Commit a87c719

Browse files
committed
fix setup
1 parent c932bd8 commit a87c719

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_monitoring.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2583,6 +2583,7 @@ def test_monitoring_live_at_shutdown(self):
25832583

25842584

25852585
class TestCApiEventGeneration(MonitoringTestBase, unittest.TestCase):
2586+
25862587
class Scope:
25872588
def __init__(self, *args):
25882589
self._testcapi = import_helper.import_module("_testcapi")
@@ -2597,7 +2598,8 @@ def __exit__(self, *args):
25972598
def setUp(self):
25982599
super(TestCApiEventGeneration, self).setUp()
25992600

2600-
capi = import_helper.import_module("_testcapi")
2601+
self._testcapi = import_helper.import_module("_testcapi")
2602+
capi = self._testcapi
26012603

26022604
self.codelike = capi.CodeLike(2)
26032605

0 commit comments

Comments
 (0)