Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fixes for Python 3.9 #544

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/future/moves/_dummy_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from future.utils import PY3

if PY3:
from _dummy_thread import *
from _thread import *
else:
__future_module__ = True
from dummy_thread import *
2 changes: 1 addition & 1 deletion src/future/standard_library/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
# 'Tkinter': 'tkinter',
'_winreg': 'winreg',
'thread': '_thread',
'dummy_thread': '_dummy_thread',
'dummy_thread': '_thread',
# 'anydbm': 'dbm', # causes infinite import loop
# 'whichdb': 'dbm', # causes infinite import loop
# anydbm and whichdb are handled by fix_imports2
Expand Down
1 change: 0 additions & 1 deletion tests/test_future/test_standard_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ def test_urllib_imports_install_hooks(self):

def test_underscore_prefixed_modules(self):
import _thread
import _dummy_thread
import _markupbase
self.assertTrue(True)

Expand Down
2 changes: 0 additions & 2 deletions tests/test_future/test_urllib_toplevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,6 @@ def test_unquoting(self):
"%s" % result)
self.assertRaises((TypeError, AttributeError), urllib_parse.unquote, None)
self.assertRaises((TypeError, AttributeError), urllib_parse.unquote, ())
with support.check_warnings(('', BytesWarning), quiet=True):
self.assertRaises((TypeError, AttributeError), urllib_parse.unquote, bytes(b''))

def test_unquoting_badpercent(self):
# Test unquoting on bad percent-escapes
Expand Down