Skip to content

Commit 1b258c2

Browse files
committed
Improve test_safe_futurize_imports: more relevant
1 parent d4b6f96 commit 1b258c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

future/tests/test_futurize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,11 +713,11 @@ def test_safe_futurize_imports(self):
713713
before = """
714714
import ConfigParser
715715
import HTMLParser
716-
import collections
716+
from itertools import ifilterfalse
717717
718718
ConfigParser.ConfigParser
719719
HTMLParser.HTMLParser
720-
d = collections.OrderedDict()
720+
assert list(ifilterfalse(lambda x: x % 2, [2, 4])) == [2, 4]
721721
"""
722722
self.unchanged(before, stages=[1])
723723

0 commit comments

Comments
 (0)