[diffoscope] 01/01: Remove unused imports in comparator tests.

Chris Lamb chris at chris-lamb.co.uk
Tue Jan 17 01:28:46 CET 2017


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit 4b250cb0727f5d710d3c1c7864f69317120ea187
Author: Chris Lamb <lamby at debian.org>
Date:   Tue Jan 17 11:28:15 2017 +1100

    Remove unused imports in comparator tests.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 tests/comparators/test_dex.py       | 1 -
 tests/comparators/test_epub.py      | 1 -
 tests/comparators/test_ico_image.py | 1 -
 tests/comparators/test_utils.py     | 4 +---
 4 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/tests/comparators/test_dex.py b/tests/comparators/test_dex.py
index 8965264..46199c7 100644
--- a/tests/comparators/test_dex.py
+++ b/tests/comparators/test_dex.py
@@ -26,7 +26,6 @@ from diffoscope.comparators.missing_file import MissingFile
 
 from utils.data import data, load_fixture
 from utils.tools import skip_unless_tools_exist, skip_unless_tool_is_at_least
-from utils.nonexisting import assert_non_existing
 
 from test_java import javap_version
 
diff --git a/tests/comparators/test_epub.py b/tests/comparators/test_epub.py
index d0f0c7b..4d6f392 100644
--- a/tests/comparators/test_epub.py
+++ b/tests/comparators/test_epub.py
@@ -25,7 +25,6 @@ from diffoscope.comparators.missing_file import MissingFile
 
 from utils.data import data, load_fixture
 from utils.tools import skip_unless_tools_exist
-from utils.nonexisting import assert_non_existing
 
 
 epub1 = load_fixture('test1.epub')
diff --git a/tests/comparators/test_ico_image.py b/tests/comparators/test_ico_image.py
index a4051ff..9cac3a3 100644
--- a/tests/comparators/test_ico_image.py
+++ b/tests/comparators/test_ico_image.py
@@ -19,7 +19,6 @@
 
 import pytest
 
-from diffoscope.config import Config
 from diffoscope.comparators.image import ICOImageFile
 
 from utils.data import data, load_fixture
diff --git a/tests/comparators/test_utils.py b/tests/comparators/test_utils.py
index b1006e9..88033b4 100644
--- a/tests/comparators/test_utils.py
+++ b/tests/comparators/test_utils.py
@@ -26,8 +26,6 @@ from diffoscope.comparators.utils.command import Command
 
 from utils.data import data, load_fixture
 from utils.tools import tools_missing, skip_unless_tools_exist
-from utils.nonexisting import assert_non_existing
-
 
 try:
     import tlsh # noqa
@@ -35,6 +33,7 @@ try:
 except ImportError:
     miss_tlsh = True
 
+
 fuzzy_tar1 = load_fixture('fuzzy1.tar')
 fuzzy_tar2 = load_fixture('fuzzy2.tar')
 fuzzy_tar3 = load_fixture('fuzzy3.tar')
@@ -76,7 +75,6 @@ def test_fuzzy_matching(fuzzy_tar1, fuzzy_tar2):
 def test_fuzzy_matching_only_once(fuzzy_tar1, fuzzy_tar3):
     differences = fuzzy_tar1.compare(fuzzy_tar3).details
     assert len(differences) == 2
-    expected_diff = codecs.open(data('text_iso8859_expected_diff'), encoding='utf-8').read()
 
 fuzzy_tar_in_tar1 = load_fixture('fuzzy-tar-in-tar1.tar')
 fuzzy_tar_in_tar2 = load_fixture('fuzzy-tar-in-tar2.tar')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list