summaryrefslogtreecommitdiffstats
path: root/Lib/test/output
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-07-13 08:37:40 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-07-13 08:37:40 (GMT)
commitd6f6e50c9b91cd3b5ac401d6ee94ec28f2dff02e (patch)
treea2b069b063be9dd84587fd2a13673f477a8f2d11 /Lib/test/output
parentdc9dcf135e7bde09726d0af5cd55f49c31851c66 (diff)
downloadcpython-d6f6e50c9b91cd3b5ac401d6ee94ec28f2dff02e.zip
cpython-d6f6e50c9b91cd3b5ac401d6ee94ec28f2dff02e.tar.gz
cpython-d6f6e50c9b91cd3b5ac401d6ee94ec28f2dff02e.tar.bz2
Reworked test_warnings.py:
* It ran fine under "python regrtest.py test_warnings" but failed under "python regrtest.py" presumably because other tests would add to filtered warnings and not reset them at the end of the test. * Converted to a unittest format for better control. Renamed monkey() and unmonkey() to setUp() and tearDown(). * Increased coverage by testing all warnings in __builtin__. * Increased coverage by testing regex matching of specific messages.
Diffstat (limited to 'Lib/test/output')
-rw-r--r--Lib/test/output/test_warnings10
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/test/output/test_warnings b/Lib/test/output/test_warnings
deleted file mode 100644
index 8fe6d47..0000000
--- a/Lib/test/output/test_warnings
+++ /dev/null
@@ -1,10 +0,0 @@
-test_warnings
-('ignore', False, 'FutureWarning', False, 0)
-('ignore', True, 'OverflowWarning', True, 0)
-('ignore', True, 'PendingDeprecationWarning', True, 0)
-test_warnings.py:31: UserWarning: hello world
-test_warnings.py:32: UserWarning: hello world
-test_warnings.py:33: DeprecationWarning: hello world
-test_warnings.py:35: UserWarning: hello world
-Caught UserWarning: hello world
-Caught AssertionError: invalid action: 'booh'