Show More
@@ -16,8 +16,8 b' def test_read_file():' | |||||
16 | read_specified_enc = io.open(nonascii_path, encoding='iso-8859-5').read() |
|
16 | read_specified_enc = io.open(nonascii_path, encoding='iso-8859-5').read() | |
17 | read_detected_enc = openpy.read_py_file(nonascii_path, skip_encoding_cookie=False) |
|
17 | read_detected_enc = openpy.read_py_file(nonascii_path, skip_encoding_cookie=False) | |
18 | nt.assert_equal(read_detected_enc, read_specified_enc) |
|
18 | nt.assert_equal(read_detected_enc, read_specified_enc) | |
19 |
assert u' |
|
19 | assert u'coding: iso-8859-5' in read_detected_enc | |
20 |
|
20 | |||
21 | read_strip_enc_cookie = openpy.read_py_file(nonascii_path, skip_encoding_cookie=True) |
|
21 | read_strip_enc_cookie = openpy.read_py_file(nonascii_path, skip_encoding_cookie=True) | |
22 |
assert u' |
|
22 | assert u'coding: iso-8859-5' not in read_strip_enc_cookie | |
23 |
|
23 |
General Comments 0
You need to be logged in to leave comments.
Login now