Skip to content

Commit cae65f4

Browse files
QuLogicedschofield
authored andcommitted
Fix past standard_library hook test.
The test framework here calls remove_hook() from past, but the test installs hooks from future, so they bleed through.
1 parent 247d175 commit cae65f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

past/tests/test_translation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ def test_import_future_standard_library(self):
123123
"""
124124
module = self.write_and_import(code, 'future_standard_library')
125125
self.assertTrue('configparser' in dir(module))
126+
from future import standard_library
127+
standard_library.remove_hooks()
126128

127129
def test_old_builtin_functions(self):
128130
code = """

0 commit comments

Comments
 (0)