summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_warnings.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2003-07-11 20:22:55 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2003-07-11 20:22:55 (GMT)
commitb6d2f3e07d6214a91b25c9d76e3ac75ae5a65efc (patch)
tree58e0f7889bcde0bc8315e0b88f032cb33725e484 /Lib/test/test_warnings.py
parentfff093fa7f429ecab973c192c8c0da0216355847 (diff)
downloadcpython-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/test_warnings.py')
-rw-r--r--Lib/test/test_warnings.py2
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)