summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-12 02:22:19 (GMT)
committerGuido van Rossum <guido@python.org>2001-08-12 02:22:19 (GMT)
commitf73e30c3e3ba6f2779eadf6bf4c21c6bf3e4c075 (patch)
tree6af0e8baf3983870aafcb97d5ad1957207ba3809
parenta2be2d624a47e420266606f0cb2a2e030797f650 (diff)
downloadcpython-f73e30c3e3ba6f2779eadf6bf4c21c6bf3e4c075.zip
cpython-f73e30c3e3ba6f2779eadf6bf4c21c6bf3e4c075.tar.gz
cpython-f73e30c3e3ba6f2779eadf6bf4c21c6bf3e4c075.tar.bz2
Add the list of expected skips for Linux 2.x. Restructured the code a
little bit using a dictionary to avoid more code duplication as more platforms are supported.
-rwxr-xr-xLib/test/regrtest.py79
1 files changed, 51 insertions, 28 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 3a16bbf..6078cd1 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -399,38 +399,61 @@ class _Set:
data.sort()
return data
+_expectations = {
+ 'win32':
+ """
+ test_al
+ test_cd
+ test_cl
+ test_commands
+ test_crypt
+ test_dbm
+ test_dl
+ test_fcntl
+ test_fork1
+ test_gdbm
+ test_gl
+ test_grp
+ test_imgfile
+ test_largefile
+ test_linuxaudiodev
+ test_mhlib
+ test_nis
+ test_openpty
+ test_poll
+ test_pty
+ test_pwd
+ test_signal
+ test_socketserver
+ test_sunaudiodev
+ test_timing
+ """,
+ 'linux2':
+ """
+ test_al
+ test_cd
+ test_cl
+ test_dl
+ test_gl
+ test_imgfile
+ test_largefile
+ test_nis
+ test_ntpath
+ test_socketserver
+ test_sunaudiodev
+ test_unicode_file
+ test_winreg
+ test_winsound
+ """,
+}
+
class _ExpectedSkips:
def __init__(self):
self.valid = 0
-
- if sys.platform == "win32":
- self.valid = 1
- s = """test_al
- test_cd
- test_cl
- test_commands
- test_crypt
- test_dbm
- test_dl
- test_fcntl
- test_fork1
- test_gdbm
- test_gl
- test_grp
- test_imgfile
- test_largefile
- test_linuxaudiodev
- test_mhlib
- test_nis
- test_openpty
- test_poll
- test_pty
- test_pwd
- test_signal
- test_socketserver
- test_sunaudiodev
- test_timing"""
+ if _expectations.has_key(sys.platform):
+ s = _expectations[sys.platform]
self.expected = _Set(s.split())
+ self.valid = 1
def isvalid(self):
"Return true iff _ExpectedSkips knows about the current platform."