summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-03-01 11:49:03 +0100
committerTimothy Crosley <timothy.crosley@gmail.com>2019-03-02 18:09:11 -0800
commitde8619045265abde2a9978f2d3405051ea52c1bf (patch)
treed878223fc49a4b8742412f70722799a6af717270
parent8ddec258e465699bd19cf13f82ada43d3fdf791b (diff)
downloadisort-de8619045265abde2a9978f2d3405051ea52c1bf.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 982288df..c0eafb52 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -2242,7 +2242,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():