Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit cf0ccb1

Browse files
committed
tests: isort remove duplicates imports
1 parent eac3686 commit cf0ccb1

3 files changed

Lines changed: 1 addition & 6 deletions

File tree

testdata/imported_twice_in.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from __future__ import absolute_import
22

3-
# TODO(benkraft): In the case where these two imports are rewritten to be
4-
# identical, maybe we should remove the now-exact duplicate?
53
import foo.bar
64
from foo import bar
75

testdata/imported_twice_out.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
from __future__ import absolute_import
22

3-
# TODO(benkraft): In the case where these two imports are rewritten to be
4-
# identical, maybe we should remove the now-exact duplicate?
5-
import quux
63
import quux
74

85

tests/test_moves.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_dash_f_flag(self):
124124
self.assertFileIs('baz/faa.py', 'def myfaa(): return 4\n')
125125
self.assertFileIs('baz/__init__.py', '')
126126
self.assertFileIs('bar.py',
127-
('from baz import faa\nfrom baz import foo\n\n'
127+
('from baz import faa, foo\n\n'
128128
'foo.myfunc()\nfaa.myfaa()\n'))
129129
self.assertFalse(self.error_output)
130130

0 commit comments

Comments
 (0)