[Python-checkins] cpython (3.2): Temporarily disable test_from_dll in test_returnfuncptrs.py for Windows.

serhiy.storchaka python-checkins at python.org
Mon Feb 4 14:22:14 CET 2013


http://hg.python.org/cpython/rev/b5f268185510
changeset:   81991:b5f268185510
branch:      3.2
parent:      81987:4bac47eb444c
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Mon Feb 04 15:19:37 2013 +0200
summary:
  Temporarily disable test_from_dll in test_returnfuncptrs.py for Windows.

files:
  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
--- 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
 
@@ -33,6 +34,7 @@
         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 @@
         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:

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list