[diffoscope] 01/02: W T F

Ximin Luo infinity0 at debian.org
Mon May 29 23:31:49 CEST 2017


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

infinity0 pushed a commit to branch experimental
in repository diffoscope.

commit 98275e3fa0ec81b3f5a19a4de7d9f5fa867cdab1
Author: Ximin Luo <infinity0 at debian.org>
Date:   Mon May 29 23:15:22 2017 +0200

    W T F
    
    - also rm an unused define
---
 tests/comparators/test_ogg.py | 2 --
 tests/test_presenters.py      | 1 -
 2 files changed, 3 deletions(-)

diff --git a/tests/comparators/test_ogg.py b/tests/comparators/test_ogg.py
index 1816ac2..1cb3db8 100644
--- a/tests/comparators/test_ogg.py
+++ b/tests/comparators/test_ogg.py
@@ -45,8 +45,6 @@ def differences(ogg1, ogg2):
 
 @skip_unless_tools_exist('oggDump')
 def test_diff(differences):
-    with open('tests/data/ogg_expected_diff', 'w') as f:
-        f.write(differences[0].unified_diff)
     expected_diff = get_data('ogg_expected_diff')
     assert differences[0].unified_diff == expected_diff
 
diff --git a/tests/test_presenters.py b/tests/test_presenters.py
index b58605d..ffa0cb4 100644
--- a/tests/test_presenters.py
+++ b/tests/test_presenters.py
@@ -26,7 +26,6 @@ from diffoscope.main import main
 from .utils.data import cwd_data, get_data
 
 re_html = re.compile(r'.*<body(?P<body>.*)<div class="footer">', re.MULTILINE | re.DOTALL)
-DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')
 
 
 def run(capsys, *args):

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


More information about the diffoscope mailing list