Update of /cvsroot/python/python/dist/src/Lib/test In directory usw-pr-cvs1:/tmp/cvs-serv7625 Modified Files: test_tempfile.py Log Message: Don't call warnings.resetwarnings(); that does bad things that cause other tests to generate warning when they didn't before. In particular, this cancels not only filters set by -W, but also from test.regrtest. Index: test_tempfile.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_tempfile.py,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** test_tempfile.py 22 Aug 2002 20:02:03 -0000 1.10 --- test_tempfile.py 17 Oct 2002 22:09:03 -0000 1.11 *************** *** 11,14 **** --- 11,18 ---- from test import test_support + warnings.filterwarnings("ignore", + category=RuntimeWarning, + message="mktemp", module=__name__) + if hasattr(os, 'stat'): import stat *************** *** 479,485 **** def setUp(self): self.dir = tempfile.mkdtemp() - warnings.filterwarnings("ignore", - category=RuntimeWarning, - message="mktemp") def tearDown(self): --- 483,486 ---- *************** *** 487,492 **** os.rmdir(self.dir) self.dir = None - # XXX This clobbers any -W options. - warnings.resetwarnings() class mktemped: --- 488,491 ----
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4