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
a66b46aa
Commit
a66b46aa
authored
Feb 04, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporarily disable test_from_dll in test_returnfuncptrs.py for Windows.
parent
19c4e0df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Lib/ctypes/test/test_returnfuncptrs.py
Lib/ctypes/test/test_returnfuncptrs.py
+4
-1
No files found.
Lib/ctypes/test/test_returnfuncptrs.py
View file @
a66b46aa
import
unittest
from
ctypes
import
*
import
os
import
_ctypes_test
...
...
@@ -33,6 +34,7 @@ class ReturnFuncPtrTestCase(unittest.TestCase):
self
.
assertRaises
(
ArgumentError
,
strchr
,
b"abcdef"
,
3.0
)
self
.
assertRaises
(
TypeError
,
strchr
,
b"abcdef"
)
@
unittest
.
skipIf
(
os
.
name
==
'nt'
,
'Temporarily disabled for Windows'
)
def
test_from_dll
(
self
):
dll
=
CDLL
(
_ctypes_test
.
__file__
)
# _CFuncPtr instances are now callable with a tuple argument
...
...
@@ -43,8 +45,9 @@ class ReturnFuncPtrTestCase(unittest.TestCase):
self
.
assertRaises
(
ArgumentError
,
strchr
,
b"abcdef"
,
3.0
)
self
.
assertRaises
(
TypeError
,
strchr
,
b"abcdef"
)
@
unittest
.
skipIf
(
os
.
name
==
'nt'
,
'Temporarily disabled for Windows'
)
# Issue 6083: Reference counting bug
def
test_
test_
from_dll_refcount
(
self
):
def
test_from_dll_refcount
(
self
):
class
BadSequence
(
tuple
):
def
__getitem__
(
self
,
key
):
if
key
==
0
:
...
...
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