[diffoscope] 01/01: tests: fix sqlite test for sqlite 3.19
Ximin Luo
infinity0 at debian.org
Fri Jul 7 15:32:35 CEST 2017
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository diffoscope.
commit a56f813a08eb94b8a845846ba8afd5309d57af25
Author: Ximin Luo <infinity0 at debian.org>
Date: Fri Jul 7 15:32:25 2017 +0200
tests: fix sqlite test for sqlite 3.19
---
tests/comparators/test_sqlite.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/comparators/test_sqlite.py b/tests/comparators/test_sqlite.py
index 4a26e6a..cfee6fd 100644
--- a/tests/comparators/test_sqlite.py
+++ b/tests/comparators/test_sqlite.py
@@ -43,7 +43,8 @@ def differences(sqlite3db1, sqlite3db2):
@skip_unless_tools_exist('sqlite3')
def test_diff(differences):
expected_diff = get_data('sqlite3_expected_diff')
- assert differences[0].unified_diff == expected_diff
+ actual_diff = differences[0].unified_diff
+ assert actual_diff == expected_diff or actual_diff == expected_diff.replace('"test"', 'test')
@skip_unless_tools_exist('sqlite3')
def test_compare_non_existing(monkeypatch, sqlite3db1):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list