summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Edmund Crosley <timothy.crosley@gmail.com>2019-03-02 01:53:17 -0800
committerGitHub <noreply@github.com>2019-03-02 01:53:17 -0800
commitd39ab9b0db742eb80af56d5e0e4e1564a26823e9 (patch)
tree43ed70b75858fdfd832223285dca356179c6792b
parent9fd512e768cbbfeb4114b17522c9d577deb25701 (diff)
parentc95d1804cb4f0492fe43e0a0a2b35302a6c0e833 (diff)
downloadisort-d39ab9b0db742eb80af56d5e0e4e1564a26823e9.tar.gz
Merge pull request #861 from blueyed/fix-test_inconsistent_behavior_in_python_2_and_3_issue_479
Fix test_inconsistent_behavior_in_python_2_and_3_issue_479
-rw-r--r--test_isort.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test_isort.py b/test_isort.py
index a775ce46..ad8cc30a 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -2245,7 +2245,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():