diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-07-11 20:22:55 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-07-11 20:22:55 (GMT) |
commit | b6d2f3e07d6214a91b25c9d76e3ac75ae5a65efc (patch) | |
tree | 58e0f7889bcde0bc8315e0b88f032cb33725e484 /Lib/test | |
parent | fff093fa7f429ecab973c192c8c0da0216355847 (diff) | |
download | cpython-b6d2f3e07d6214a91b25c9d76e3ac75ae5a65efc.zip cpython-b6d2f3e07d6214a91b25c9d76e3ac75ae5a65efc.tar.gz cpython-b6d2f3e07d6214a91b25c9d76e3ac75ae5a65efc.tar.bz2 |
Don't include slash in search string; it's OS-specific.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_warnings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_warnings.py b/Lib/test/test_warnings.py index 9cd3c30..9e375e0 100644 --- a/Lib/test/test_warnings.py +++ b/Lib/test/test_warnings.py @@ -8,7 +8,7 @@ _filters = [] _showwarning = None def showwarning(message, category, filename, lineno, file=None): - i = filename.find("Lib/") + i = filename.find("Lib") filename = filename[i:] print "%s:%s: %s: %s" % (filename, lineno, category.__name__, message) |