summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-11-24 18:53:11 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-11-24 18:53:11 (GMT)
commit1b445d3fcfcc06e5360e83b978efdb9b1c980278 (patch)
treedd7c86f5d1a726c63f66bc569096a1db3570dab9 /Lib/test/regrtest.py
parent65730a4de80b5446d4bd3301098c1c053af99b27 (diff)
downloadcpython-1b445d3fcfcc06e5360e83b978efdb9b1c980278.zip
cpython-1b445d3fcfcc06e5360e83b978efdb9b1c980278.tar.gz
cpython-1b445d3fcfcc06e5360e83b978efdb9b1c980278.tar.bz2
Fiddled things so that test_normalization is expected to be skipped if
and only if the test input file doesn't exist.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-xLib/test/regrtest.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index e7eb73f..d0650e6 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -503,6 +503,10 @@ def printlist(x, width=70, indent=4):
# test_pep277
# The _ExpectedSkips constructor adds this to the set of expected
# skips if not os.path.supports_unicode_filenames.
+# test_normalization
+# Whether a skip is expected here depends on whether a large test
+# input file has been downloaded. test_normalization.skip_expected
+# controls that
_expectations = {
'win32':
@@ -528,7 +532,6 @@ _expectations = {
test_mhlib
test_mpz
test_nis
- test_normalization
test_openpty
test_poll
test_pty
@@ -829,12 +832,19 @@ _expectations = {
class _ExpectedSkips:
def __init__(self):
import os.path
+ from test import test_normalization
+
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')
+
+ if test_normalization.skip_expected:
+ self.expected.add('test_normalization')
+
self.valid = True
def isvalid(self):