File tree 2 files changed +4
-4
lines changed
Lib/test/test_importlib/source
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,14 +76,10 @@ def test_encoding_on_second_line(self):
76
76
source = b"#/usr/bin/python\n " + self .create_source ('Latin-1' )
77
77
self .run_test (source )
78
78
79
- # TODO: RUSTPYTHON
80
- @unittest .expectedFailure
81
79
# [BOM]
82
80
def test_bom (self ):
83
81
self .run_test (codecs .BOM_UTF8 + self .source_line .encode ('utf-8' ))
84
82
85
- # TODO: RUSTPYTHON
86
- @unittest .expectedFailure
87
83
# [BOM and utf-8]
88
84
def test_bom_and_utf_8 (self ):
89
85
source = codecs .BOM_UTF8 + self .create_source ('utf-8' )
Original file line number Diff line number Diff line change @@ -236,6 +236,10 @@ where
236
236
lxr. window . slide ( ) ;
237
237
lxr. window . slide ( ) ;
238
238
lxr. window . slide ( ) ;
239
+ // TODO: Handle possible mismatch between BOM and explicit encoding declaration.
240
+ if let Some ( '\u{feff}' ) = lxr. window [ 0 ] {
241
+ lxr. window . slide ( ) ;
242
+ }
239
243
// Start at top row (=1) left column (=1)
240
244
lxr. location . reset ( ) ;
241
245
lxr
You can’t perform that action at this time.
0 commit comments