mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #20532: Tests which use _testcapi now are marked as CPython only.
This commit is contained in:
parent
fe4ef392d5
commit
5cfc79deae
25 changed files with 239 additions and 106 deletions
|
@ -573,6 +573,7 @@ class TestPytime(unittest.TestCase):
|
|||
-(2.0 ** 100.0), 2.0 ** 100.0,
|
||||
)
|
||||
|
||||
@support.cpython_only
|
||||
def test_time_t(self):
|
||||
from _testcapi import pytime_object_to_time_t
|
||||
for obj, time_t in (
|
||||
|
@ -588,6 +589,7 @@ class TestPytime(unittest.TestCase):
|
|||
for invalid in self.invalid_values:
|
||||
self.assertRaises(OverflowError, pytime_object_to_time_t, invalid)
|
||||
|
||||
@support.cpython_only
|
||||
def test_timeval(self):
|
||||
from _testcapi import pytime_object_to_timeval
|
||||
for obj, timeval in (
|
||||
|
@ -607,6 +609,7 @@ class TestPytime(unittest.TestCase):
|
|||
for invalid in self.invalid_values:
|
||||
self.assertRaises(OverflowError, pytime_object_to_timeval, invalid)
|
||||
|
||||
@support.cpython_only
|
||||
def test_timespec(self):
|
||||
from _testcapi import pytime_object_to_timespec
|
||||
for obj, timespec in (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue