ths "should be" skipped depends on os.path.supports_unicode_filenames,
not really on the platform. Fiddled the expected-skip constructor
appropriately.
# 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':
test_largefile
test_nis
test_ntpath
- test_pep277
test_socket_ssl
test_socketserver
test_sunaudiodev
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):