Paul Moore <[email protected]> added the comment:
First one - the problem is in packaging.manifest._translate_pattern, which uses
os.path.join on regex parts. That won't work on Windows where os.sep is a
backslash, as the backslash is a RE metacharacter.
Actually, the file list seems to only use '/' as a path separator, so you can
just use
pattern_re = "^" + prefix_re + '/' + ".*" + pattern_re
Whether this is right or not depends on whether the test is correctly supplying
the expected file list as always /-separated. I don't know enough to be certain
on that. An alternative would be to use '[/\\]' in the above, to catch both /
and \ separators. Technically wrong, but robust enough to do for now if needed.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13193>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com