data.sort()
return data
+# Map sys.platform to a string containing the basenames of tests
+# expected to be skipped on that platform.
+
_expectations = {
'win32':
"""
test_largefile
test_linuxaudiodev
test_mhlib
+ test_mpz
test_nis
test_openpty
test_poll
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