[Reproducible-commits] [diffoscope] 12/21: fixup test_debian, epub and ppu not difference

Joachim Breitner nomeata at moszumanska.debian.org
Thu Dec 3 15:05:05 UTC 2015


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

nomeata pushed a commit to branch pu/parallel2
in repository diffoscope.

commit 1aa8485530f579ebd3dd401ebc89a76ecd88079f
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Thu Nov 19 14:39:54 2015 +0000

    fixup test_debian, epub and ppu not difference
---
 tests/comparators/test_debian.py | 2 +-
 tests/comparators/test_epub.py   | 2 +-
 tests/comparators/test_ppu.py    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/comparators/test_debian.py b/tests/comparators/test_debian.py
index b9b3526..07d89d0 100644
--- a/tests/comparators/test_debian.py
+++ b/tests/comparators/test_debian.py
@@ -127,7 +127,7 @@ def test_dot_dsc_invalid(tmpdir, dot_dsc2):
 
 def test_dot_dsc_no_differences(dot_dsc1):
     difference = dot_dsc1.compare(dot_dsc1)
-    assert difference is None
+    assert not difference
 
 @pytest.fixture
 def dot_dsc_differences(dot_dsc1, dot_dsc2):
diff --git a/tests/comparators/test_epub.py b/tests/comparators/test_epub.py
index 80134e1..b7e72e5 100644
--- a/tests/comparators/test_epub.py
+++ b/tests/comparators/test_epub.py
@@ -41,7 +41,7 @@ def test_identification(epub1):
 
 def test_no_differences(epub1):
     difference = epub1.compare(epub1)
-    assert difference is None
+    assert not difference
 
 @pytest.fixture
 def differences(epub1, epub2):
diff --git a/tests/comparators/test_ppu.py b/tests/comparators/test_ppu.py
index bf0acb3..c2c82e0 100644
--- a/tests/comparators/test_ppu.py
+++ b/tests/comparators/test_ppu.py
@@ -48,7 +48,7 @@ def test_identification(file1):
 
 def test_no_differences(file1):
     difference = file1.compare(file1)
-    assert difference is None
+    assert not difference
 
 @pytest.fixture
 def differences(file1, file2):

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



More information about the Reproducible-commits mailing list