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
28ababcd
Commit
28ababcd
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
a07a8b4f
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 @
28ababcd
import
unittest
from
ctypes
import
*
import
os
import
_ctypes_test
...
...
@@ -31,6 +32,7 @@ class ReturnFuncPtrTestCase(unittest.TestCase):
self
.
assertRaises
(
ArgumentError
,
strchr
,
"abcdef"
,
3
)
self
.
assertRaises
(
TypeError
,
strchr
,
"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
...
...
@@ -42,7 +44,8 @@ class ReturnFuncPtrTestCase(unittest.TestCase):
self
.
assertRaises
(
TypeError
,
strchr
,
b"abcdef"
)
# Issue 6083: Reference counting bug
def
test_test_from_dll_refcount
(
self
):
@
unittest
.
skipIf
(
os
.
name
==
'nt'
,
'Temporarily disabled for Windows'
)
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