@@ -2466,8 +2466,6 @@ def test___init__(self):
2466
2466
self .assertIsNot (element_foo .attrib , attrib )
2467
2467
self .assertNotEqual (element_foo .attrib , attrib )
2468
2468
2469
- # TODO: RUSTPYTHON
2470
- @unittest .expectedFailure
2471
2469
def test_copy (self ):
2472
2470
# Only run this test if Element.copy() is defined.
2473
2471
if "copy" not in dir (ET .Element ):
@@ -3918,6 +3916,8 @@ def test_write_to_filename(self):
3918
3916
with open (TESTFN , 'rb' ) as f :
3919
3917
self .assertEqual (f .read (), b'''<site>ø</site>''' )
3920
3918
3919
+ # TODO: RUSTPYTHON
3920
+ @unittest .expectedFailure
3921
3921
def test_write_to_filename_with_encoding (self ):
3922
3922
self .addCleanup (os_helper .unlink , TESTFN )
3923
3923
tree = ET .ElementTree (ET .XML ('''<site>\xf8 </site>''' ))
@@ -3931,6 +3931,8 @@ def test_write_to_filename_with_encoding(self):
3931
3931
b'''<?xml version='1.0' encoding='ISO-8859-1'?>\n '''
3932
3932
b'''<site>\xf8 </site>''' ))
3933
3933
3934
+ # TODO: RUSTPYTHON
3935
+ @unittest .expectedFailure
3934
3936
def test_write_to_filename_as_unicode (self ):
3935
3937
self .addCleanup (os_helper .unlink , TESTFN )
3936
3938
with open (TESTFN , 'w' ) as f :
@@ -3976,6 +3978,8 @@ def test_write_to_binary_file(self):
3976
3978
with open (TESTFN , 'rb' ) as f :
3977
3979
self .assertEqual (f .read (), b'''<site>ø</site>''' )
3978
3980
3981
+ # TODO: RUSTPYTHON
3982
+ @unittest .expectedFailure
3979
3983
def test_write_to_binary_file_with_encoding (self ):
3980
3984
self .addCleanup (os_helper .unlink , TESTFN )
3981
3985
tree = ET .ElementTree (ET .XML ('''<site>\xf8 </site>''' ))
0 commit comments