Message126680
test_reprlib fails on Windows, because '\' in quoted '\\' in the filename on repr(module). Workaround:
*******
index b0dc4d7..e476941 100644
--- a/Lib/test/test_reprlib.py
+++ b/Lib/test/test_reprlib.py
@@ -234,7 +234,7 @@ class LongReprTest(unittest.TestCase):
touch(os.path.join(self.subpkgname, self.pkgname + '.py'))
from areallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation import areallylongpackageandmodulenametotestreprtruncation
eq(repr(areallylongpackageandmodulenametotestreprtruncation),
- "<module '%s' from '%s'>" % (areallylongpackageandmodulenametotestreprtruncation.__name__, areallylongpackageandmodulenametotestreprtruncation.__file__))
+ "<module %r from %r>" % (areallylongpackageandmodulenametotestreprtruncation.__name__, areallylongpackageandmodulenametotestreprtruncation.__file__))
eq(repr(sys), "<module 'sys' (built-in)>")
def test_type(self):
*******
It is maybe not a good idea to use %R to format the filename in module.__repr__(). |
|
Date |
User |
Action |
Args |
2011-01-21 02:13:46 | vstinner | set | recipients:
+ vstinner, brett.cannon, georg.brandl, terry.reedy, amaury.forgeotdarc, ncoghlan, belopolsky, benjamin.peterson, eric.araujo, Arfrever, r.david.murray |
2011-01-21 02:13:45 | vstinner | set | messageid: <1295576025.96.0.420029004627.issue3080@psf.upfronthosting.co.za> |
2011-01-21 02:13:41 | vstinner | link | issue3080 messages |
2011-01-21 02:13:41 | vstinner | create | |
|