summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_commands.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-08-03 08:32:53 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-08-03 08:32:53 (GMT)
commit9bab5249aa43b0be22c029e6e0877fb300f21c86 (patch)
treeb6cd8df9d164ce2643399ab4fac50d18780f6219 /Lib/test/test_commands.py
parent8a078d5b4c274e9c1e6d336753383bdd1ff7608e (diff)
downloadcpython-9bab5249aa43b0be22c029e6e0877fb300f21c86.zip
cpython-9bab5249aa43b0be22c029e6e0877fb300f21c86.tar.gz
cpython-9bab5249aa43b0be22c029e6e0877fb300f21c86.tar.bz2
Fix deprecation warnings in test_commands.py
Diffstat (limited to 'Lib/test/test_commands.py')
-rw-r--r--Lib/test/test_commands.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_commands.py b/Lib/test/test_commands.py
index 827f108..a539c24 100644
--- a/Lib/test/test_commands.py
+++ b/Lib/test/test_commands.py
@@ -5,8 +5,8 @@
import unittest
import os, tempfile, re
-from test.test_support import run_unittest, reap_children, import_module, \
- check_warnings
+from test.test_support import (run_unittest, reap_children, import_module,
+ check_warnings)
from test.test_support import TestSkipped, run_unittest, reap_children, import_module
# Silence Py3k warning
@@ -57,8 +57,8 @@ class CommandTests(unittest.TestCase):
[^/]* # Skip user, group, size, and date.
/\. # and end with the name of the file.
'''
-
- self.assertTrue(re.match(pat, getstatus("/."), re.VERBOSE))
+ with check_warnings(quiet=True):
+ self.assertTrue(re.match(pat, getstatus("/."), re.VERBOSE))
def test_main():