summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-04-01 05:04:46 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-04-01 05:04:46 (GMT)
commitde14a30d1d70073d36f207fe432e4adad5178399 (patch)
tree0cc005a8e188557b4d18faa707f302ac4f603cf8 /Lib
parentf4e3484692096260e0ea030f4f3490204fb966c6 (diff)
downloadcpython-de14a30d1d70073d36f207fe432e4adad5178399.zip
cpython-de14a30d1d70073d36f207fe432e4adad5178399.tar.gz
cpython-de14a30d1d70073d36f207fe432e4adad5178399.tar.bz2
We expect to skip the new test_mpz on Windows.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/regrtest.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index c0f7963..9e2bc25 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -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