diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-04 13:19:21 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-04 13:19:21 (GMT) |
commit | 28ababcda4738165f96c95188f3cbeb9784ce074 (patch) | |
tree | e702b8fc0078c3b24d262edb36b0530667ba92bd | |
parent | a07a8b4f18c9f3a6eb14080dcbef4dc23a2d3f3b (diff) | |
download | cpython-28ababcda4738165f96c95188f3cbeb9784ce074.zip cpython-28ababcda4738165f96c95188f3cbeb9784ce074.tar.gz cpython-28ababcda4738165f96c95188f3cbeb9784ce074.tar.bz2 |
Temporarily disable test_from_dll in test_returnfuncptrs.py for Windows.
-rw-r--r-- | Lib/ctypes/test/test_returnfuncptrs.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_returnfuncptrs.py b/Lib/ctypes/test/test_returnfuncptrs.py index 29ae076..fb9048c 100644 --- a/Lib/ctypes/test/test_returnfuncptrs.py +++ b/Lib/ctypes/test/test_returnfuncptrs.py @@ -1,5 +1,6 @@ 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: |