]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
We expect to skip the new test_mpz on Windows.
authorTim Peters <tim.peters@gmail.com>
Mon, 1 Apr 2002 05:04:46 +0000 (05:04 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 1 Apr 2002 05:04:46 +0000 (05:04 +0000)
Lib/test/regrtest.py

index c0f7963433415f5af7aba912d5541afc07021ec1..9e2bc25e13b386457c6644dbff0951a6b3fb737c 100755 (executable)
@@ -466,6 +466,9 @@ class _Set:
             data.sort()
         return data
 
+# Map sys.platform to a string containing the basenames of tests
+# expected to be skipped on that platform.
+
 _expectations = {
     'win32':
         """
@@ -486,6 +489,7 @@ _expectations = {
         test_largefile
         test_linuxaudiodev
         test_mhlib
+        test_mpz
         test_nis
         test_openpty
         test_poll
@@ -677,7 +681,7 @@ _expectations = {
 class _ExpectedSkips:
     def __init__(self):
         self.valid = 0
-        if _expectations.has_key(sys.platform):
+        if sys.platform in _expectations:
             s = _expectations[sys.platform]
             self.expected = _Set(s.split())
             self.valid = 1