14
0

- add fix-error-type.patch to fix tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmldiff?expand=0&rev=23
This commit is contained in:
2025-08-04 20:20:51 +00:00
committed by Git OBS Bridge
parent 1080706320
commit 4166c4ed68
3 changed files with 21 additions and 1 deletions

13
fix-error-type.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: xmldiff-2.7.0/tests/test_main.py
===================================================================
--- xmldiff-2.7.0/tests/test_main.py.orig
+++ xmldiff-2.7.0/tests/test_main.py
@@ -44,7 +44,7 @@ class MainAPITests(unittest.TestCase):
with open(LEFT_FILE, "rb") as infile:
with open(RIGHT_FILE, "rb") as infile:
# Give something else, and it fails:
- with self.assertRaises(ValueError):
+ with self.assertRaises(TypeError):
main.diff_texts(infile, infile)
def test_api_diff_trees(self):