Fix deprecation warnings in test_commands.py
This commit is contained in:
parent
8a078d5b4c
commit
9bab5249aa
|
@ -5,8 +5,8 @@
|
||||||
import unittest
|
import unittest
|
||||||
import os, tempfile, re
|
import os, tempfile, re
|
||||||
|
|
||||||
from test.test_support import run_unittest, reap_children, import_module, \
|
from test.test_support import (run_unittest, reap_children, import_module,
|
||||||
check_warnings
|
check_warnings)
|
||||||
|
|
||||||
from test.test_support import TestSkipped, run_unittest, reap_children, import_module
|
from test.test_support import TestSkipped, run_unittest, reap_children, import_module
|
||||||
# Silence Py3k warning
|
# Silence Py3k warning
|
||||||
|
@ -57,8 +57,8 @@ class CommandTests(unittest.TestCase):
|
||||||
[^/]* # Skip user, group, size, and date.
|
[^/]* # Skip user, group, size, and date.
|
||||||
/\. # and end with the name of the file.
|
/\. # and end with the name of the file.
|
||||||
'''
|
'''
|
||||||
|
with check_warnings(quiet=True):
|
||||||
self.assertTrue(re.match(pat, getstatus("/."), re.VERBOSE))
|
self.assertTrue(re.match(pat, getstatus("/."), re.VERBOSE))
|
||||||
|
|
||||||
|
|
||||||
def test_main():
|
def test_main():
|
||||||
|
|
Loading…
Reference in New Issue