]> granicus.if.org Git - python/commit
Reworked test_warnings.py:
authorRaymond Hettinger <python@rcn.com>
Sun, 13 Jul 2003 08:37:40 +0000 (08:37 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 13 Jul 2003 08:37:40 +0000 (08:37 +0000)
commitd6f6e50c9b91cd3b5ac401d6ee94ec28f2dff02e
treea2b069b063be9dd84587fd2a13673f477a8f2d11
parentdc9dcf135e7bde09726d0af5cd55f49c31851c66
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.
Lib/test/output/test_warnings [deleted file]
Lib/test/test_warnings.py