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:
commit
f28ba369dd
29 changed files with 284 additions and 118 deletions
|
@ -17,7 +17,6 @@ import stat
|
|||
import tempfile
|
||||
import unittest
|
||||
import warnings
|
||||
import _testcapi
|
||||
|
||||
_DUMMY_SYMLINK = os.path.join(tempfile.gettempdir(),
|
||||
support.TESTFN + '-dummy-symlink')
|
||||
|
@ -617,7 +616,12 @@ class PosixTester(unittest.TestCase):
|
|||
except OSError:
|
||||
pass
|
||||
|
||||
@support.cpython_only
|
||||
@unittest.skipUnless(hasattr(os, 'pipe2'), "test needs os.pipe2()")
|
||||
@support.requires_linux_version(2, 6, 27)
|
||||
def test_pipe2_c_limits(self):
|
||||
# Issue 15989
|
||||
import _testcapi
|
||||
self.assertRaises(OverflowError, os.pipe2, _testcapi.INT_MAX + 1)
|
||||
self.assertRaises(OverflowError, os.pipe2, _testcapi.UINT_MAX + 1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue