forked from pool/python-xmldiff
- 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:
13
fix-error-type.patch
Normal file
13
fix-error-type.patch
Normal 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):
|
||||
Reference in New Issue
Block a user