@@ -2466,8 +2466,6 @@ def test___init__(self):
24662466 self .assertIsNot (element_foo .attrib , attrib )
24672467 self .assertNotEqual (element_foo .attrib , attrib )
24682468
2469- # TODO: RUSTPYTHON
2470- @unittest .expectedFailure
24712469 def test_copy (self ):
24722470 # Only run this test if Element.copy() is defined.
24732471 if "copy" not in dir (ET .Element ):
@@ -3918,6 +3916,8 @@ def test_write_to_filename(self):
39183916 with open (TESTFN , 'rb' ) as f :
39193917 self .assertEqual (f .read (), b'''<site>ø</site>''' )
39203918
3919+ # TODO: RUSTPYTHON
3920+ @unittest .expectedFailure
39213921 def test_write_to_filename_with_encoding (self ):
39223922 self .addCleanup (os_helper .unlink , TESTFN )
39233923 tree = ET .ElementTree (ET .XML ('''<site>\xf8 </site>''' ))
@@ -3931,6 +3931,8 @@ def test_write_to_filename_with_encoding(self):
39313931 b'''<?xml version='1.0' encoding='ISO-8859-1'?>\n '''
39323932 b'''<site>\xf8 </site>''' ))
39333933
3934+ # TODO: RUSTPYTHON
3935+ @unittest .expectedFailure
39343936 def test_write_to_filename_as_unicode (self ):
39353937 self .addCleanup (os_helper .unlink , TESTFN )
39363938 with open (TESTFN , 'w' ) as f :
@@ -3976,6 +3978,8 @@ def test_write_to_binary_file(self):
39763978 with open (TESTFN , 'rb' ) as f :
39773979 self .assertEqual (f .read (), b'''<site>ø</site>''' )
39783980
3981+ # TODO: RUSTPYTHON
3982+ @unittest .expectedFailure
39793983 def test_write_to_binary_file_with_encoding (self ):
39803984 self .addCleanup (os_helper .unlink , TESTFN )
39813985 tree = ET .ElementTree (ET .XML ('''<site>\xf8 </site>''' ))
0 commit comments