Lower test-skipping threshold in test_reprlib

This commit is contained in:
Antoine Pitrou 2012-06-23 22:55:58 +02:00
parent 106c4145ff
commit 110ee34e41
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ class LongReprTest(unittest.TestCase):
# a path separator + `module_name` + ".py" # a path separator + `module_name` + ".py"
source_path_len += len(module_name) + 1 + len(".py") source_path_len += len(module_name) + 1 + len(".py")
cached_path_len = source_path_len + len(imp.cache_from_source("x.py")) - len("x.py") cached_path_len = source_path_len + len(imp.cache_from_source("x.py")) - len("x.py")
if os.name == 'nt' and cached_path_len >= 259: if os.name == 'nt' and cached_path_len >= 258:
# Under Windows, the max path len is 260 including C's terminating # Under Windows, the max path len is 260 including C's terminating
# NUL character. # NUL character.
# (see http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx#maxpath) # (see http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx#maxpath)