Commit 9bab5249 authored by Ezio Melotti's avatar Ezio Melotti

Fix deprecation warnings in test_commands.py

parent 8a078d5b
......@@ -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():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment