mirror of https://github.com/python/cpython.git
Temporarily disable test_from_dll in test_returnfuncptrs.py for Windows.
This commit is contained in:
parent
19c4e0df29
commit
a66b46aad6
|
@ -1,5 +1,6 @@
|
||||||
import unittest
|
import unittest
|
||||||
from ctypes import *
|
from ctypes import *
|
||||||
|
import os
|
||||||
|
|
||||||
import _ctypes_test
|
import _ctypes_test
|
||||||
|
|
||||||
|
@ -33,6 +34,7 @@ def test_without_prototype(self):
|
||||||
self.assertRaises(ArgumentError, strchr, b"abcdef", 3.0)
|
self.assertRaises(ArgumentError, strchr, b"abcdef", 3.0)
|
||||||
self.assertRaises(TypeError, strchr, b"abcdef")
|
self.assertRaises(TypeError, strchr, b"abcdef")
|
||||||
|
|
||||||
|
@unittest.skipIf(os.name == 'nt', 'Temporarily disabled for Windows')
|
||||||
def test_from_dll(self):
|
def test_from_dll(self):
|
||||||
dll = CDLL(_ctypes_test.__file__)
|
dll = CDLL(_ctypes_test.__file__)
|
||||||
# _CFuncPtr instances are now callable with a tuple argument
|
# _CFuncPtr instances are now callable with a tuple argument
|
||||||
|
@ -43,8 +45,9 @@ def test_from_dll(self):
|
||||||
self.assertRaises(ArgumentError, strchr, b"abcdef", 3.0)
|
self.assertRaises(ArgumentError, strchr, b"abcdef", 3.0)
|
||||||
self.assertRaises(TypeError, strchr, b"abcdef")
|
self.assertRaises(TypeError, strchr, b"abcdef")
|
||||||
|
|
||||||
|
@unittest.skipIf(os.name == 'nt', 'Temporarily disabled for Windows')
|
||||||
# Issue 6083: Reference counting bug
|
# Issue 6083: Reference counting bug
|
||||||
def test_test_from_dll_refcount(self):
|
def test_from_dll_refcount(self):
|
||||||
class BadSequence(tuple):
|
class BadSequence(tuple):
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
if key == 0:
|
if key == 0:
|
||||||
|
|
Loading…
Reference in New Issue