summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fileio.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-08-02 18:10:09 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-08-02 18:10:09 (GMT)
commitf613f352d05cafbec6c4524c67f3eed00a0c4857 (patch)
treefe0e22ba0c4a6de17a04580c26cf19c8cc136528 /Lib/test/test_fileio.py
parent800a354fa946d777b8df92e5b0bd07e92f6f9a3b (diff)
downloadcpython-f613f352d05cafbec6c4524c67f3eed00a0c4857.zip
cpython-f613f352d05cafbec6c4524c67f3eed00a0c4857.tar.gz
cpython-f613f352d05cafbec6c4524c67f3eed00a0c4857.tar.bz2
Merged revisions 78758 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78758 | florent.xicluna | 2010-03-07 14:18:33 +0200 (Sun, 07 Mar 2010) | 4 lines Issue #7849: Now the utility ``check_warnings`` verifies if the warnings are effectively raised. A new utility ``check_py3k_warnings`` deals with py3k warnings. ........
Diffstat (limited to 'Lib/test/test_fileio.py')
-rw-r--r--Lib/test/test_fileio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py
index d1b3751..7eeef7b 100644
--- a/Lib/test/test_fileio.py
+++ b/Lib/test/test_fileio.py
@@ -259,7 +259,7 @@ class OtherFileTests(unittest.TestCase):
self.assertRaises(TypeError, _fileio._FileIO, "1", 0, 0)
def testWarnings(self):
- with check_warnings() as w:
+ with check_warnings(quiet=True) as w:
self.assertEqual(w.warnings, [])
self.assertRaises(TypeError, _fileio._FileIO, [])
self.assertEqual(w.warnings, [])