[Python-checkins] cpython: Lower test-skipping threshold in test_reprlib

antoine.pitrou python-checkins at python.org
Sat Jun 23 22:59:31 CEST 2012


http://hg.python.org/cpython/rev/ec656d79b8ac
changeset:   77650:ec656d79b8ac
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sat Jun 23 22:55:58 2012 +0200
summary:
  Lower test-skipping threshold in test_reprlib

files:
  Lib/test/test_reprlib.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_reprlib.py b/Lib/test/test_reprlib.py
--- a/Lib/test/test_reprlib.py
+++ b/Lib/test/test_reprlib.py
@@ -242,7 +242,7 @@
         # 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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list