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

Jérémy Bobbio lunar at moszumanska.debian.org
Thu Dec 3 11:08:00 UTC 2015


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

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

commit 6d9a76e63d0c8cc0da76bdba32ac9c2fec404fd9
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 7216617..fe58f4b 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