summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-10-09 01:07:11 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-10-09 01:07:11 (GMT)
commit2a182dbf3f2520ad753792068391775d102b13df (patch)
treefaa5c63e41967d6a90898b61423ebdf19574f47c /Lib
parentcfac1d4a1894789cc52e77723c9008f300a9050b (diff)
downloadcpython-2a182dbf3f2520ad753792068391775d102b13df.zip
cpython-2a182dbf3f2520ad753792068391775d102b13df.tar.gz
cpython-2a182dbf3f2520ad753792068391775d102b13df.tar.bz2
Logic for determining whether skipping test_pep277 is expected: whether
ths "should be" skipped depends on os.path.supports_unicode_filenames, not really on the platform. Fiddled the expected-skip constructor appropriately.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/regrtest.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 4f556bd..248bad4 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -495,6 +495,11 @@ def printlist(x, width=70, indent=4):
# Map sys.platform to a string containing the basenames of tests
# expected to be skipped on that platform.
+#
+# Special cases:
+# test_pep277
+# The _ExpectedSkips constructor adds this to the set of expected
+# skips if not os.path.supports_unicode_filenames.
_expectations = {
'win32':
@@ -543,7 +548,6 @@ _expectations = {
test_largefile
test_nis
test_ntpath
- test_pep277
test_socket_ssl
test_socketserver
test_sunaudiodev
@@ -819,10 +823,13 @@ _expectations = {
class _ExpectedSkips:
def __init__(self):
+ import os.path
self.valid = False
if sys.platform in _expectations:
s = _expectations[sys.platform]
self.expected = Set(s.split())
+ if not os.path.supports_unicode_filenames:
+ self.expected.add('test_pep277')
self.valid = True
def isvalid(self):