Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
24c738a9
Commit
24c738a9
authored
Mar 19, 2017
by
Serhiy Storchaka
Committed by
GitHub
Mar 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-29845: Mark tests that use _testcapi as CPython-only (#711)
parent
6b5a9ec4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
1 deletion
+8
-1
Lib/ctypes/test/test_structures.py
Lib/ctypes/test/test_structures.py
+4
-1
Lib/test/test_atexit.py
Lib/test/test_atexit.py
+1
-0
Lib/test/test_coroutines.py
Lib/test/test_coroutines.py
+1
-0
Lib/test/test_socket.py
Lib/test/test_socket.py
+1
-0
Lib/test/test_tracemalloc.py
Lib/test/test_tracemalloc.py
+1
-0
No files found.
Lib/ctypes/test/test_structures.py
View file @
24c738a9
...
...
@@ -2,8 +2,8 @@ import unittest
from
ctypes
import
*
from
ctypes.test
import
need_symbol
from
struct
import
calcsize
import
_testcapi
import
_ctypes_test
import
test.support
class
SubclassesTest
(
unittest
.
TestCase
):
def
test_subclass
(
self
):
...
...
@@ -202,7 +202,10 @@ class StructureTestCase(unittest.TestCase):
"_pack_"
:
-
1
}
self
.
assertRaises
(
ValueError
,
type
(
Structure
),
"X"
,
(
Structure
,),
d
)
@
test
.
support
.
cpython_only
def
test_packed_c_limits
(
self
):
# Issue 15989
import
_testcapi
d
=
{
"_fields_"
:
[(
"a"
,
c_byte
)],
"_pack_"
:
_testcapi
.
INT_MAX
+
1
}
self
.
assertRaises
(
ValueError
,
type
(
Structure
),
"X"
,
(
Structure
,),
d
)
...
...
Lib/test/test_atexit.py
View file @
24c738a9
...
...
@@ -143,6 +143,7 @@ class GeneralTest(unittest.TestCase):
self
.
assertEqual
(
l
,
[
5
])
@
support
.
cpython_only
class
SubinterpreterTest
(
unittest
.
TestCase
):
def
test_callbacks_leak
(
self
):
...
...
Lib/test/test_coroutines.py
View file @
24c738a9
...
...
@@ -2117,6 +2117,7 @@ class SysSetCoroWrapperTest(unittest.TestCase):
sys.set_coroutine_wrapper(None)
@support.cpython_only
class CAPITest(unittest.TestCase):
def test_tp_await_1(self):
...
...
Lib/test/test_socket.py
View file @
24c738a9
...
...
@@ -906,6 +906,7 @@ class GeneralModuleTests(unittest.TestCase):
self
.
assertEqual
(
swapped
&
mask
,
mask
)
self
.
assertRaises
(
OverflowError
,
func
,
1
<<
34
)
@
support
.
cpython_only
def
testNtoHErrors
(
self
):
import
_testcapi
s_good_values
=
[
0
,
1
,
2
,
0xffff
]
...
...
Lib/test/test_tracemalloc.py
View file @
24c738a9
...
...
@@ -865,6 +865,7 @@ class TestCommandLine(unittest.TestCase):
b'
number
of
frames
',
stderr)
@unittest.skipIf(_testcapi is None, '
need
_testcapi
')
def test_pymem_alloc0(self):
# Issue #21639: Check that PyMem_Malloc(0) with tracemalloc enabled
# does not crash.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment