Skip to content

Commit

Permalink
pythongh-115142: Skip tests if _testinternalcapi is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Eclips4 committed Feb 8, 2024
1 parent fedbf77 commit 099e5a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/test/test_optimizer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import _testinternalcapi
import unittest
import types
from test.support import import_helper


_testinternalcapi = import_helper.import_module("_testinternalcapi")


class TestRareEventCounters(unittest.TestCase):
Expand Down

0 comments on commit 099e5a7

Please sign in to comment.