[Python-checkins] r83653 - python/branches/release26-maint/Lib/test/test_commands.py
ezio.melotti
python-checkins at python.org
Tue Aug 3 10:32:54 CEST 2010
Author: ezio.melotti
Date: Tue Aug 3 10:32:53 2010
New Revision: 83653
Log:
Fix deprecation warnings in test_commands.py
Modified:
python/branches/release26-maint/Lib/test/test_commands.py
Modified: python/branches/release26-maint/Lib/test/test_commands.py
==============================================================================
--- python/branches/release26-maint/Lib/test/test_commands.py (original)
+++ python/branches/release26-maint/Lib/test/test_commands.py Tue Aug 3 10:32:53 2010
@@ -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 @@
[^/]* # 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():
More information about the Python-checkins
mailing list