============================= test session starts ============================== platform sunos5 -- Python $(PYTHON_VERSION).X -- $(PYTHON) cachedir: .pytest_cache rootdir: $(@D) configfile: setup.cfg collecting ... collected 150 items tests/test_base_detection.py::test_empty PASSED tests/test_base_detection.py::test_bool_matches PASSED tests/test_base_detection.py::test_empty_but_with_bom_or_sig[\xfe\xff-utf_16] PASSED tests/test_base_detection.py::test_empty_but_with_bom_or_sig[\x841\x953-gb18030] PASSED tests/test_base_detection.py::test_empty_but_with_bom_or_sig[\xef\xbb\xbf-utf_8] PASSED tests/test_base_detection.py::test_empty_but_with_bom_or_sig[\xff\xfe\x00\x00-utf_32] PASSED tests/test_base_detection.py::test_content_with_bom_or_sig[\x841\x953\xce\xd2\xc3\xbb\xd3\xd0\xc2\xf1\xd4\xb9\xa3\xac\xb4\xe8\xed\xc8\xb5\xc4\xd6\xbb\xca\xc7\xd2\xbb\xd0\xa9\xca\xb1\xbc\xe4\xa1\xa3-gb18030] PASSED tests/test_base_detection.py::test_content_with_bom_or_sig[\xff\xfe\x00\x00\x11b\x00\x00\xa1l\x00\x00\tg\x00\x00\xcbW\x00\x00(`\x00\x00\x0c\xff\x00\x00\xcbx\x00\x00#x\x00\x00\x84v\x00\x00\xeaS\x00\x00/f\x00\x00\x00N\x00\x00\x9bN\x00\x00\xf6e\x00\x00\xf4\x95\x00\x00\x020\x00\x00-utf_32] PASSED tests/test_base_detection.py::test_content_with_bom_or_sig[\xef\xbb\xbf\xe6\x88\x91\xe6\xb2\xa1\xe6\x9c\x89\xe5\x9f\x8b\xe6\x80\xa8\xef\xbc\x8c\xe7\xa3\x8b\xe7\xa0\xa3\xe7\x9a\x84\xe5\x8f\xaa\xe6\x98\xaf\xe4\xb8\x80\xe4\xba\x9b\xe6\x97\xb6\xe9\x97\xb4\xe3\x80\x82-utf_8] PASSED tests/test_base_detection.py::test_obviously_ascii_content[AbAdZ pOoooOlDl mmlDoDkA lldDkeEkddA mpAlkDF] PASSED tests/test_base_detection.py::test_obviously_ascii_content[g4UsPJdfzNkGW2jwmKDGDilKGKYtpF2X.mx3MaTWL1tL7CNn5U7DeCcodKX7S3lwwJPKNjBT8etY] PASSED tests/test_base_detection.py::test_obviously_ascii_content[{"token": "g4UsPJdfzNkGW2jwmKDGDilKGKYtpF2X.mx3MaTWL1tL7CNn5U7DeCcodKX7S3lwwJPKNjBT8etY"}] PASSED tests/test_base_detection.py::test_obviously_ascii_content[81f4ab054b39cb0e12701e734077d84264308f5fc79494fc5f159fa2ebc07b73c8cc0e98e009664a20986706f90146e8eefcb929ce1f74a8eab21369fdc70198] PASSED tests/test_base_detection.py::test_obviously_ascii_content[{}] PASSED tests/test_base_detection.py::test_obviously_utf8_content[\xc8\x8d\x1b] PASSED tests/test_base_detection.py::test_obviously_utf8_content[h\xc3\xa9llo world!\n] PASSED tests/test_base_detection.py::test_obviously_utf8_content[\xe6\x88\x91\xe6\xb2\xa1\xe6\x9c\x89\xe5\x9f\x8b\xe6\x80\xa8\xef\xbc\x8c\xe7\xa3\x8b\xe7\xa0\xa3\xe7\x9a\x84\xe5\x8f\xaa\xe6\x98\xaf\xe4\xb8\x80\xe4\xba\x9b\xe6\x97\xb6\xe9\x97\xb4\xe3\x80\x82] PASSED tests/test_base_detection.py::test_obviously_utf8_content[B\xd1\x81\xd0\xb5\xd0\xba\xd0\xb8 \xd1\x87\xd0\xbe\xd0\xb2\xd0\xb5\xd0\xba \xd0\xb8\xd0\xbc\xd0\xb0 \xd0\xbf\xd1\x80\xd0\xb0\xd0\xb2\xd0\xbe \xd0\xbd\xd0\xb0 \xd0\xbe\xd0\xb1\xd1\x80\xd0\xb0\xd0\xb7\xd0\xbe\xd0\xb2\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5. O\xd0\xb1\xd1\x80\xd0\xb0\xd0\xb7\xd0\xbe\xd0\xb2\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5\xd1\x82\xd0\xbe \xd1\x82\xd1\x80\xd1\x8f\xd0\xb1\xd0\xb2\xd0\xb0 \xd0\xb4\xd0\xb0 \xd0\xb1\xd1\x8a\xd0\xb4\xd0\xb5 \xd0\xb1\xd0\xb5\xd0\xb7\xd0\xbf\xd0\xbb\xd0\xb0\xd1\x82\xd0\xbd\xd0\xbe, \xd0\xbf\xd0\xbe\xd0\xbd\xd0\xb5 \xd1\x89\xd0\xbe \xd1\x81\xd0\xb5 \xd0\xbe\xd1\x82\xd0\xbd\xd0\xb0\xd1\x81\xd1\x8f \xd0\xb4\xd0\xbe \xd0\xbd\xd0\xb0\xd1\x87\xd0\xb0\xd0\xbb\xd0\xbd\xd0\xbe\xd1\x82\xd0\xbe \xd0\xb8 \xd0\xbe\xd1\x81\xd0\xbd\xd0\xbe\xd0\xb2\xd0\xbd\xd0\xbe\xd1\x82\xd0\xbe \xd0\xbe\xd0\xb1\xd1\x80\xd0\xb0\xd0\xb7\xd0\xbe\xd0\xb2\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5.] PASSED tests/test_base_detection.py::test_obviously_utf8_content[B\xd1\x81\xd0\xb5\xd0\xba\xd0\xb8 \xd1\x87\xd0\xbe\xd0\xb2\xd0\xb5\xd0\xba \xd0\xb8\xd0\xbc\xd0\xb0 \xd0\xbf\xd1\x80\xd0\xb0\xd0\xb2\xd0\xbe \xd0\xbd\xd0\xb0 \xd0\xbe\xd0\xb1\xd1\x80\xd0\xb0\xd0\xb7\xd0\xbe\xd0\xb2\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5.] PASSED tests/test_base_detection.py::test_obviously_utf8_content[(\xc2\xb0 \xcd\x9c\xca\x96 \xc2\xb0), creepy face, smiley \xf0\x9f\x98\x80] PASSED tests/test_base_detection.py::test_obviously_utf8_content[["Financi\xc3\xabn", "La France"]] PASSED tests/test_base_detection.py::test_obviously_utf8_content[Qu'est ce que une \xc3\xa9toile?] PASSED tests/test_base_detection.py::test_obviously_utf8_content[Financi\xc3\xabn] PASSED tests/test_base_detection.py::test_obviously_utf8_content[\xf0\x9f\x98\x80] PASSED tests/test_base_detection.py::test_mb_cutting_chk PASSED tests/test_base_detection.py::test_alphabets_property PASSED tests/test_base_detection.py::test_doc_example_short_cp1251 PASSED tests/test_base_detection.py::test_direct_cmp_charset_match PASSED tests/test_cli.py::TestCommandLineInterface::test_force_replace_without_replace PASSED tests/test_cli.py::TestCommandLineInterface::test_multiple_file PASSED tests/test_cli.py::TestCommandLineInterface::test_non_existent_file PASSED tests/test_cli.py::TestCommandLineInterface::test_replace_without_normalize PASSED tests/test_cli.py::TestCommandLineInterface::test_simple_no_input PASSED tests/test_cli.py::TestCommandLineInterface::test_simple_yes_input PASSED tests/test_cli.py::TestCommandLineInterface::test_single_file PASSED tests/test_cli.py::TestCommandLineInterface::test_single_file_normalize PASSED tests/test_cli.py::TestCommandLineInterface::test_single_verbose_file PASSED tests/test_cli.py::TestCommandLineInterface::test_version_output_success PASSED tests/test_cli.py::TestCommandLineInterface::test_with_alternative PASSED tests/test_cli.py::TestCommandLineInterface::test_with_minimal_and_alt PASSED tests/test_cli.py::TestCommandLineInterface::test_with_minimal_output PASSED tests/test_coherence_detection.py::test_infer_language_from_cp[cp864-expected_languages0] PASSED tests/test_coherence_detection.py::test_infer_language_from_cp[cp862-expected_languages1] PASSED tests/test_coherence_detection.py::test_infer_language_from_cp[cp737-expected_languages2] PASSED tests/test_coherence_detection.py::test_infer_language_from_cp[cp424-expected_languages3] PASSED tests/test_coherence_detection.py::test_infer_language_from_cp[cp273-expected_languages4] PASSED tests/test_coherence_detection.py::test_infer_language_from_cp[johab-expected_languages5] PASSED tests/test_coherence_detection.py::test_infer_language_from_cp[shift_jis-expected_languages6] PASSED tests/test_coherence_detection.py::test_infer_language_from_cp[mac_greek-expected_languages7] PASSED tests/test_coherence_detection.py::test_infer_language_from_cp[iso2022_jp-expected_languages8] PASSED tests/test_coherence_detection.py::test_target_features[English-False-True] PASSED tests/test_coherence_detection.py::test_target_features[French-True-True] PASSED tests/test_coherence_detection.py::test_target_features[Hebrew-False-False] PASSED tests/test_coherence_detection.py::test_target_features[Arabic-False-False] PASSED tests/test_coherence_detection.py::test_target_features[Vietnamese-True-True] PASSED tests/test_coherence_detection.py::test_target_features[Turkish-True-True] PASSED tests/test_coherence_detection.py::test_filter_alt_coherence_matches[matches0-expected_return0] PASSED tests/test_coherence_detection.py::test_filter_alt_coherence_matches[matches1-expected_return1] PASSED tests/test_coherence_detection.py::test_filter_alt_coherence_matches[matches2-expected_return2] PASSED tests/test_coherence_detection.py::test_filter_alt_coherence_matches[matches3-expected_return3] PASSED tests/test_detect_legacy.py::TestDetectLegacy::test_detect_dict_keys PASSED tests/test_detect_legacy.py::TestDetectLegacy::test_detect_dict_value PASSED tests/test_detect_legacy.py::TestDetectLegacy::test_detect_dict_value_type PASSED tests/test_detect_legacy.py::TestDetectLegacy::test_utf8_sig_not_striped PASSED tests/test_edge_case.py::test_unicode_edge_case PASSED tests/test_edge_case.py::test_issue_gh520 PASSED tests/test_edge_case.py::test_issue_gh509 PASSED tests/test_edge_case.py::test_issue_gh498 PASSED tests/test_full_detection.py::test_elementary_detection[sample-arabic-1.txt-cp1256-Arabic] PASSED tests/test_full_detection.py::test_elementary_detection[sample-french-1.txt-cp1252-French] PASSED tests/test_full_detection.py::test_elementary_detection[sample-arabic.txt-utf_8-Arabic] PASSED tests/test_full_detection.py::test_elementary_detection[sample-russian-3.txt-utf_8-Russian] PASSED tests/test_full_detection.py::test_elementary_detection[sample-french.txt-utf_8-French] PASSED tests/test_full_detection.py::test_elementary_detection[sample-chinese.txt-big5-Chinese] PASSED tests/test_full_detection.py::test_elementary_detection[sample-greek.txt-cp1253-Greek] PASSED tests/test_full_detection.py::test_elementary_detection[sample-greek-2.txt-cp1253-Greek] PASSED tests/test_full_detection.py::test_elementary_detection[sample-hebrew-2.txt-cp1255-Hebrew] PASSED tests/test_full_detection.py::test_elementary_detection[sample-hebrew-3.txt-cp1255-Hebrew] PASSED tests/test_full_detection.py::test_elementary_detection[sample-bulgarian.txt-utf_8-Bulgarian] PASSED tests/test_full_detection.py::test_elementary_detection[sample-english.bom.txt-utf_8-English] PASSED tests/test_full_detection.py::test_elementary_detection[sample-spanish.txt-utf_8-Spanish] PASSED tests/test_full_detection.py::test_elementary_detection[sample-korean.txt-cp949-Korean] PASSED tests/test_full_detection.py::test_elementary_detection[sample-turkish.txt-cp1254-Turkish] PASSED tests/test_full_detection.py::test_elementary_detection[sample-russian-2.txt-utf_8-Russian] PASSED tests/test_full_detection.py::test_elementary_detection[sample-russian.txt-mac_cyrillic-Russian] PASSED tests/test_full_detection.py::test_elementary_detection[sample-polish.txt-utf_8-Polish] PASSED tests/test_isbinary.py::test_isbinary[\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff\x00_/\xff-True] PASSED tests/test_isbinary.py::test_isbinary[GIF89a\x01\x00\x01\x00\x00\x00\x00,-True] PASSED tests/test_isbinary.py::test_isbinary[raw2-True] PASSED tests/test_isbinary.py::test_isbinary[sample-polish.txt-False] PASSED tests/test_isbinary.py::test_isbinary[sample-arabic.txt-False] PASSED tests/test_large_payload.py::test_large_payload_u8_sig_basic_entry PASSED tests/test_large_payload.py::test_large_payload_ascii_basic_entry PASSED tests/test_large_payload.py::test_misleading_large_sequence PASSED tests/test_logging.py::TestLogBehaviorClass::test_explain_true_behavior PASSED tests/test_logging.py::TestLogBehaviorClass::test_explain_false_handler_set_behavior PASSED tests/test_logging.py::TestLogBehaviorClass::test_set_stream_handler PASSED tests/test_logging.py::TestLogBehaviorClass::test_set_stream_handler_format PASSED tests/test_mess_detection.py::test_mess_detection[\u5178\u8087\u4e4e\u5e9a\u8fb0\u5e74\u5341\u4e8c\u6708\u5eff\u4e00\uff0c\u53ca\u5df1\u4e11\u5e74\u4e8c\u6708\u5341\u4e5d\uff0c\u6536\u5404\u65b9\u8a9e\u8a00\u4e8c\u767e\u4e94\u5341\uff0c\u5408\u903e\u4e03\u767e\u842c\u76ee\uff1b\u4e8c\u5341\u5927\u5377\u4f54\u516b\u6210\uff0c\u55ae\u82f1\u6587\u5377\u4ea6\u904e\u4e8c\u767e\u842c\u3002\u6089\u6587\u4e43\u5929\u4e0b\u6709\u5fd7\u5171\u7b46\u800c\u6210\uff1b\u6709\u610f\u52a9\u4e4b\uff0c\u5e7e\u7db2\u8def\u3001\u96a8\u7e82\u4f5c\uff0c\u5927\u5178\u8301\u7109\u3002-0.0-0.0] PASSED tests/test_mess_detection.py::test_mess_detection[\u0627\u0644\u0639\u0642\u0644\u064a\u0629 , \u0627\u0644\u062a\u0646\u0648\u064a\u0645 \u0627\u0644\u0645\u063a\u0646\u0627\u0637\u064a\u0633\u064a \u0648 / \u0623\u0648 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u062d-0.0-0.0] PASSED tests/test_mess_detection.py::test_mess_detection[RadoZ \u062a\u0640\u0640\u0640\u0639\u0640\u0640\u0640\u0640\u062f\u064a\u0640\u0640\u0644 \u0627\u0644\u0640\u0640\u0640\u062a\u0640\u0640\u0640\u0640\u0648\u0642\u0640\u0640\u064a\u0640\u0640\u0640\u0640\u062a \u0645\u0640\u0640\u0640\u0646 \u0642\u0640\u0640\u0628\u0640\u0640\u0644-0.0-0.0] PASSED tests/test_mess_detection.py::test_mess_detection[Cehennemin Sava\u25a0\xfe\xb2s\xb2'da kim?-0.1-0.5] PASSED tests/test_mess_detection.py::test_mess_detection[\xb4\xc1\xa5\xbd\xb3\xf8\xa7i -- \xb1i\xae\xcc\xba\xfb, \xb3\xaf\xb7\xd8\xa9v-0.5-1.0] PASSED tests/test_mess_detection.py::test_mess_detection[\xefstanbul, T\u25a0rkiye'nin en kalabal\xbbk, iktisadi ve k\u25a0lt\u25a0rel a\xd3\xbbdan en \u2014nemli-0.1-0.5] PASSED tests/test_mess_detection.py::test_mess_detection[Parce que \xd3a, c'est la v\xd5ritable histoire de la rencontre avec votre Tante Robin.-0.01-0.5] PASSED tests/test_mess_detection.py::test_mess_detection[\xd8\u0122\xd8\u0160\xd8\u0123\xd8\xa7\xd8\u0136\u0172\x84 \u0172\x84\u0172\x88 \xd8\u0122\u0172\x86 \xd8\xa7\u0172\x84\u0172\x86\xd8\xa7\xd8\u0123 \u0172\x8a\u0172\x88\u0172\x85 \u0172\x85\xd8\xa7 \xd8\u0123\u0172\x88\u0172\x81\u0172\x8a\xd8\u0160\xd8\u0123\xd8\xa7\xd8\u0136\u0172\x84\u0172\x88\u0172\x86\xd8\x8c \xd8\u014a\xd8\u0111\u0172\x86\xd8\xa7 \u0172\x86\xd8\u0123\u0172\x85\xd8\u0111 \xd8\u0111\u0172\x86 (\u0172\x81\xd8\u0105\u0172\x88\xd8\u014a\u0172\x88) \u0172\x88\xd8\xa7\u0172\x84\xd8\u016a\xd8\xa7\xd8\u0160\u0172\x85-0.8-3.0] PASSED tests/test_mess_detection.py::test_mess_detection[\xc7\xe1\xda\u015e\xe1\xed\xc9 , \xc7\xe1\xca\xe4\xe6\xed\xe3 \xc7\xe1\xe3\xdb\xe4\xc7\xd8\xed\xd3\xed \xe6 / \xc3\xe6 \xc7\xe1\xc7\u015e\xca\xd1\xc7\xcd-0.8-2.5] PASSED tests/test_mess_detection.py::test_mess_detection[hishamkoc@yahoo.com \u0e38\u0e0a\u0e38\u0e11\u0e38\u0e0c\u0e39\x85\u0e39\x80\u0e39\x80\u0e38\u0e09 \u0e39\x87\u0e39\x80\u0e38\u0e14\u0e39\x80\u0e39\x80\u0e39\x80\u0e38\u0e07\u0e39\x85 \u0e38\u0e07\u0e39\x84\u0e39\x80\u0e39\x82\u0e39\x80\u0e39\x80\u0e39\x80\u0e39\x80\u0e39\x84\u0e38\u0e07\u0e39\x81RadoZ \u0e38\u0e0a\u0e39\x80\u0e39\x80\u0e39\x80\u0e38\u0e19\u0e39\x80\u0e39\x80\u0e39\x80\u0e39\x80\u0e38\u0e0f\u0e39\x8a\u0e39\x80\u0e39\x80\u0e39\x84 \u0e38\u0e07\u0e39\x84\u0e39\x80\u0e39\x80\u0e39\x80\u0e38\u0e0a\u0e39\x80\u0e39\x80\u0e39\x80\u0e39\x80\u0e39\x88\u0e39\x82\u0e39\x80\u0e39\x80\u0e39\x8a\u0e39\x80\u0e39\x80\u0e39\x80\u0e39\x80\u0e38\u0e0a \u0e39\x85\u0e39\x80\u0e39\x80\u0e39\x80\u0e39\x86 \u0e39\x82\u0e39\x80\u0e39\x80\u0e38\u0e08\u0e39\x80\u0e39\x80\u0e39\x84-0.5-2.0] PASSED tests/test_preemptive_detection.py::test_detect_most_common_body_encoding[-euc_jp] PASSED tests/test_preemptive_detection.py::test_detect_most_common_body_encoding[-utf_8] PASSED tests/test_preemptive_detection.py::test_detect_most_common_body_encoding[-None] PASSED tests/test_preemptive_detection.py::test_detect_most_common_body_encoding[# coding: utf-8-utf_8] PASSED tests/test_preemptive_detection.py::test_detect_most_common_body_encoding[-utf_8] PASSED tests/test_preemptive_detection.py::test_detect_most_common_body_encoding[-ascii] PASSED tests/test_preemptive_detection.py::test_detect_most_common_body_encoding[-johab] PASSED tests/test_preemptive_detection.py::test_detect_most_common_body_encoding[-cp037] PASSED tests/test_preemptive_detection.py::test_detect_most_common_body_encoding[-cp1252] PASSED tests/test_preemptive_detection.py::test_detect_most_common_body_encoding[-cp1256] PASSED tests/test_preemptive_detection.py::test_preemptive_mark_replacement[-] PASSED tests/test_preemptive_detection.py::test_preemptive_mark_replacement[-] PASSED tests/test_preemptive_detection.py::test_preemptive_mark_replacement[-] PASSED tests/test_preemptive_detection.py::test_preemptive_mark_replacement[# coding: utf-8-# coding: utf-8] PASSED tests/test_preemptive_detection.py::test_preemptive_mark_replacement[-] PASSED tests/test_preemptive_detection.py::test_preemptive_mark_replacement[-] PASSED tests/test_preemptive_detection.py::test_preemptive_mark_replacement[-] PASSED tests/test_preemptive_detection.py::test_preemptive_mark_replacement[-] PASSED tests/test_preemptive_detection.py::test_preemptive_mark_replacement[-] PASSED tests/test_utils.py::test_is_accentuated[\xe9-True] PASSED tests/test_utils.py::test_is_accentuated[\xe8-True] PASSED tests/test_utils.py::test_is_accentuated[\xe0-True] PASSED tests/test_utils.py::test_is_accentuated[\xc0-True] PASSED tests/test_utils.py::test_is_accentuated[\xd9-True] PASSED tests/test_utils.py::test_is_accentuated[\xe7-True] PASSED tests/test_utils.py::test_is_accentuated[a-False] PASSED tests/test_utils.py::test_is_accentuated[\u20ac-False] PASSED tests/test_utils.py::test_is_accentuated[&-False] PASSED tests/test_utils.py::test_is_accentuated[\xd6-True] PASSED tests/test_utils.py::test_is_accentuated[\xfc-True] PASSED tests/test_utils.py::test_is_accentuated[\xea-True] PASSED tests/test_utils.py::test_is_accentuated[\xd1-True] PASSED tests/test_utils.py::test_is_accentuated[\xdd-True] PASSED tests/test_utils.py::test_is_accentuated[\u03a9-False] PASSED tests/test_utils.py::test_is_accentuated[\xf8-False] PASSED tests/test_utils.py::test_is_accentuated[\u0401-False] PASSED tests/test_utils.py::test_cp_similarity[cp1026-cp1140-True] PASSED tests/test_utils.py::test_cp_similarity[cp1140-cp1026-True] PASSED tests/test_utils.py::test_cp_similarity[latin_1-cp1252-True] PASSED tests/test_utils.py::test_cp_similarity[latin_1-iso8859_4-True] PASSED tests/test_utils.py::test_cp_similarity[latin_1-cp1251-False] PASSED tests/test_utils.py::test_cp_similarity[cp1251-mac_turkish-False] PASSED ======== 150 passed ========