summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-03-01 11:49:03 +0100
committerDaniel Hahler <git@thequod.de>2019-03-01 11:49:03 +0100
commitc95d1804cb4f0492fe43e0a0a2b35302a6c0e833 (patch)
treecef33d43a9d131226aa2d0d9cd6c046b28ca7b07
parentf0badf18389935b0275660f8f3ef9899dc4c4f49 (diff)
downloadisort-c95d1804cb4f0492fe43e0a0a2b35302a6c0e833.tar.gz
Fix test_inconsistent_behavior_in_python_2_and_3_issue_479
This also failed for me with "future" being installed. Not sure if it makes sense to keep it in the first place, since isort appears to require py34 now. Ref: https://github.com/timothycrosley/isort/issues/479#issuecomment-316235116
-rw-r--r--test_isort.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test_isort.py b/test_isort.py
index b35d6cdd..79224276 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -2243,7 +2243,8 @@ def test_inconsistent_behavior_in_python_2_and_3_issue_479():
"""Test to ensure Python 2 and 3 have the same behavior"""
test_input = ('from future.standard_library import hooks\n'
'from workalendar.europe import UnitedKingdom\n')
- assert SortImports(file_contents=test_input).output == test_input
+ assert SortImports(file_contents=test_input,
+ known_first_party=["future"]).output == test_input
def test_sort_within_section_comments_issue_436():