From: Antoine Pitrou Date: Sat, 23 Jun 2012 20:55:58 +0000 (+0200) Subject: Lower test-skipping threshold in test_reprlib X-Git-Tag: v3.3.0b1~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=110ee34e4179727d2c8bf56cb655a89c561c30e0;p=python Lower test-skipping threshold in test_reprlib --- diff --git a/Lib/test/test_reprlib.py b/Lib/test/test_reprlib.py index aca1d5b4a1..589ecdd4da 100644 --- a/Lib/test/test_reprlib.py +++ b/Lib/test/test_reprlib.py @@ -242,7 +242,7 @@ class LongReprTest(unittest.TestCase): # a path separator + `module_name` + ".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") - 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 # NUL character. # (see http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx#maxpath)