Skip to content

Commit edda349

Browse files
committed
Test fixes for Python 3.9
Fixes PythonCharmers#540 Fixes PythonCharmers#541
1 parent ef51288 commit edda349

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

src/future/moves/_dummy_thread.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from future.utils import PY3
33

44
if PY3:
5-
from _dummy_thread import *
5+
from _thread import *
66
else:
77
__future_module__ = True
88
from dummy_thread import *

src/future/standard_library/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
# 'Tkinter': 'tkinter',
126126
'_winreg': 'winreg',
127127
'thread': '_thread',
128-
'dummy_thread': '_dummy_thread',
128+
'dummy_thread': '_thread',
129129
# 'anydbm': 'dbm', # causes infinite import loop
130130
# 'whichdb': 'dbm', # causes infinite import loop
131131
# anydbm and whichdb are handled by fix_imports2

tests/test_future/test_standard_library.py

-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ def test_urllib_imports_install_hooks(self):
422422

423423
def test_underscore_prefixed_modules(self):
424424
import _thread
425-
import _dummy_thread
426425
import _markupbase
427426
self.assertTrue(True)
428427

tests/test_future/test_urllib_toplevel.py

-2
Original file line numberDiff line numberDiff line change
@@ -781,8 +781,6 @@ def test_unquoting(self):
781781
"%s" % result)
782782
self.assertRaises((TypeError, AttributeError), urllib_parse.unquote, None)
783783
self.assertRaises((TypeError, AttributeError), urllib_parse.unquote, ())
784-
with support.check_warnings(('', BytesWarning), quiet=True):
785-
self.assertRaises((TypeError, AttributeError), urllib_parse.unquote, bytes(b''))
786784

787785
def test_unquoting_badpercent(self):
788786
# Test unquoting on bad percent-escapes

0 commit comments

Comments
 (0)