forked from pool/python-lxml
		
	- update to version 5.1.0: Details on https://lxml.de/5.1/changes-5.1.0.html removed merged patches: - ISO-Schematron-schema-optional.patch - remove-ISO-Schematron-schema.patch - close_file_before_test.patch OBS-URL: https://build.opensuse.org/request/show/1138782 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=193
		
			
				
	
	
		
			21 lines
		
	
	
		
			811 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			811 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| Index: lxml-5.1.0/src/lxml/tests/test_io.py
 | |
| ===================================================================
 | |
| --- lxml-5.1.0.orig/src/lxml/tests/test_io.py
 | |
| +++ lxml-5.1.0/src/lxml/tests/test_io.py
 | |
| @@ -12,6 +12,7 @@ from .common_imports import (
 | |
|      read_file, write_to_file, BytesIO, tmpfile
 | |
|  )
 | |
|  
 | |
| +import lxml
 | |
|  
 | |
|  class _IOTestCaseBase(HelperTestCase):
 | |
|      """(c)ElementTree compatibility for IO functions/methods
 | |
| @@ -305,6 +306,7 @@ class _IOTestCaseBase(HelperTestCase):
 | |
|              os.unlink(f.name)
 | |
|          self.assertEqual(utext, root.text)
 | |
|  
 | |
| +    @unittest.skipIf(lxml.etree.LIBXML_VERSION >= (2, 11, 1), "libxml2 regression has issues with utf16")
 | |
|      def test_iterparse_utf16_bom(self):
 | |
|          utext = 'Søk på nettet'
 | |
|          uxml = '<?xml version="1.0" encoding="UTF-16"?><p>%s</p>' % utext
 |