diff options
author | Erlend E. Aasland <erlend@python.org> | 2024-04-03 15:11:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 15:11:36 +0200 |
commit | ea94b3b149eeadf33c2f7c46f16dcda0adc7cf4e (patch) | |
tree | 7fc58f8dcd7513427c7ea2ff9d7bad523be1118a /Lib/test/test_finalization.py | |
parent | 2ec6bb4111d2c03c1cac02b27c74beee7e5a2a05 (diff) | |
download | cpython-ea94b3b149eeadf33c2f7c46f16dcda0adc7cf4e.tar.gz cpython-ea94b3b149eeadf33c2f7c46f16dcda0adc7cf4e.zip |
gh-116303: Skip test module dependent tests if test modules are unavailable (#117341)
Diffstat (limited to 'Lib/test/test_finalization.py')
-rw-r--r-- | Lib/test/test_finalization.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_finalization.py b/Lib/test/test_finalization.py index 1d134430909..42871f8a09b 100644 --- a/Lib/test/test_finalization.py +++ b/Lib/test/test_finalization.py @@ -13,7 +13,7 @@ except ImportError: def with_tp_del(cls): class C(object): def __new__(cls, *args, **kwargs): - raise TypeError('requires _testcapi.with_tp_del') + raise unittest.SkipTest('requires _testcapi.with_tp_del') return C try: @@ -22,7 +22,7 @@ except ImportError: def without_gc(cls): class C: def __new__(cls, *args, **kwargs): - raise TypeError('requires _testcapi.without_gc') + raise unittest.SkipTest('requires _testcapi.without_gc') return C from test import support |