Commit 28ababcd authored by Serhiy Storchaka's avatar Serhiy Storchaka

Temporarily disable test_from_dll in test_returnfuncptrs.py for Windows.

parent a07a8b4f
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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment