diff options
Diffstat (limited to 'Lib/test/test_urllib.py')
| -rw-r--r-- | Lib/test/test_urllib.py | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 61e0202..1dcbbed 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -640,16 +640,20 @@ class Pathname_Tests(unittest.TestCase): def test_main(): - test_support.run_unittest( - urlopen_FileTests, - urlopen_HttpTests, - urlretrieve_FileTests, - QuotingTests, - UnquotingTests, - urlencode_Tests, - Pathname_Tests, - #FTPWrapperTests, - ) + import warnings + with test_support.catch_warning(record=False): + warnings.filterwarnings('ignore', ".*urllib\.urlopen.*Python 3.0", + DeprecationWarning) + test_support.run_unittest( + urlopen_FileTests, + urlopen_HttpTests, + urlretrieve_FileTests, + QuotingTests, + UnquotingTests, + urlencode_Tests, + Pathname_Tests, + #FTPWrapperTests, + ) |
