============================= test session starts ============================== platform sunos5 -- Python $(PYTHON_VERSION).X -- $(PYTHON) cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$(@D)/.hypothesis/examples') rootdir: $(@D) asyncio: mode=strict collecting ... collected 176 items pydiffx/tests/test_dom_objects.py::DiffXChangeSectionTests::test_eq PASSED pydiffx/tests/test_dom_objects.py::DiffXChangeSectionTests::test_generate_stats PASSED pydiffx/tests/test_dom_objects.py::DiffXChangeSectionTests::test_generate_stats_merges PASSED pydiffx/tests/test_dom_objects.py::DiffXChangeSectionTests::test_generate_stats_with_parse_error PASSED pydiffx/tests/test_dom_objects.py::DiffXChangeSectionTests::test_init_with_invalid_options PASSED pydiffx/tests/test_dom_objects.py::DiffXChangeSectionTests::test_init_with_options PASSED pydiffx/tests/test_dom_objects.py::DiffXChangeSectionTests::test_meta PASSED pydiffx/tests/test_dom_objects.py::DiffXChangeSectionTests::test_ne PASSED pydiffx/tests/test_dom_objects.py::DiffXChangeSectionTests::test_ne_with_subsection PASSED pydiffx/tests/test_dom_objects.py::DiffXChangeSectionTests::test_repr PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_content PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_content_with_invalid_type PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_encoding PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_encoding_with_invalid_type PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_eq PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_init_with_invalid_options PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_init_with_options PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_line_endings_with_dos PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_line_endings_with_invalid_type PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_line_endings_with_invalid_value PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_line_endings_with_unix PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_ne PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_type_with_dos PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_type_with_invalid_type PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_type_with_invalid_value PASSED pydiffx/tests/test_dom_objects.py::DiffXFileDiffSectionTests::test_type_with_unix PASSED pydiffx/tests/test_dom_objects.py::DiffXFileSectionTests::test_diff PASSED pydiffx/tests/test_dom_objects.py::DiffXFileSectionTests::test_eq PASSED pydiffx/tests/test_dom_objects.py::DiffXFileSectionTests::test_generate_stats PASSED pydiffx/tests/test_dom_objects.py::DiffXFileSectionTests::test_generate_stats_merges PASSED pydiffx/tests/test_dom_objects.py::DiffXFileSectionTests::test_generate_stats_with_binary_diff PASSED pydiffx/tests/test_dom_objects.py::DiffXFileSectionTests::test_generate_stats_with_line_endings PASSED pydiffx/tests/test_dom_objects.py::DiffXFileSectionTests::test_generate_stats_with_no_diff PASSED pydiffx/tests/test_dom_objects.py::DiffXFileSectionTests::test_generate_stats_with_parse_error PASSED pydiffx/tests/test_dom_objects.py::DiffXFileSectionTests::test_init_with_invalid_options PASSED pydiffx/tests/test_dom_objects.py::DiffXFileSectionTests::test_init_with_options PASSED pydiffx/tests/test_dom_objects.py::DiffXFileSectionTests::test_meta PASSED pydiffx/tests/test_dom_objects.py::DiffXFileSectionTests::test_ne PASSED pydiffx/tests/test_dom_objects.py::DiffXFileSectionTests::test_repr PASSED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_content PASSED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_content_with_invalid_type PASSED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_encoding PASSED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_encoding_with_invalid_type PASSED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_eq PASSED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_format PASSED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_format_with_invalid_type PASSED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_format_with_invalid_value PASSED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_init_with_invalid_options PASSED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_init_with_options PASSED pydiffx/tests/test_dom_objects.py::DiffXMetaSectionTests::test_ne PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_content PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_content_with_invalid_type PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_encoding PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_encoding_with_invalid_type PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_eq PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_indent PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_indent_with_invalid_type PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_init_with_invalid_options PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_init_with_options PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_line_endings_with_dos PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_line_endings_with_invalid_type PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_line_endings_with_invalid_value PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_line_endings_with_unix PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_mimetype_with_invalid_type PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_mimetype_with_invalid_value PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_mimetype_with_markdown PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_mimetype_with_plain PASSED pydiffx/tests/test_dom_objects.py::DiffXPreambleSectionTests::test_ne PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_eq PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_from_bytes_to_bytes_preserves_content PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_from_bytes_with_complex_diff PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_from_bytes_with_no_diffx_encoding PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_from_bytes_with_simple_diff PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_generate_stats PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_generate_stats_empty_diff PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_generate_stats_merges PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_meta PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_ne PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_ne_with_subsection PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_preamble PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_repr PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_to_bytes_with_binary_diff_content PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_to_bytes_with_complex_diff PASSED pydiffx/tests/test_dom_objects.py::DiffXTests::test_to_bytes_with_simple_diff PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_content_invalid_line_ending_option PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_content_line_endings_option_dos PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_content_line_endings_option_unix PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_content_long_lines PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_content_missing_length_option PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_content_missing_newline PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_content_utf16 PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_content_utf32 PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_extra_newlines PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_header_invalid_format PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_header_invalid_option_key_chars PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_header_invalid_option_value_chars PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_header_long_line PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_invalid_section_order PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_invalid_version PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_meta_deserialize_error PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_meta_invalid_format PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_multi_commit_diff PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_newlines_file_crlf_content_lf PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_newlines_file_lf_content_crlf PASSED pydiffx/tests/test_reader.py::DiffXReaderTests::test_with_simple_diff PASSED pydiffx/tests/test_utils_text.py::GetNewlineForTypeTests::test_with_dos PASSED pydiffx/tests/test_utils_text.py::GetNewlineForTypeTests::test_with_encoding PASSED pydiffx/tests/test_utils_text.py::GetNewlineForTypeTests::test_with_encoding_invalid PASSED pydiffx/tests/test_utils_text.py::GetNewlineForTypeTests::test_with_invalid_line_endings PASSED pydiffx/tests/test_utils_text.py::GetNewlineForTypeTests::test_with_unix PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_all_deletes PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_all_inserts PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_all_mixture_of_changes PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_bad_hunk_length_both PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_bad_hunk_length_both_and_new_hunk PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_bad_hunk_length_modified PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_bad_hunk_length_modified_and_new_hunk PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_bad_hunk_length_orig PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_bad_hunk_length_orig_and_new_hunk PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_change_on_first_line PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_change_on_second_line PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_change_on_third_line PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_garbage_between_hunks PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_garbage_between_hunks_with_ignore_garbage PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_garbage_in_hunk PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_garbage_like_header_between_hunks PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_header_context PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_insert_before_only_line PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_multiple_hunks PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_multiple_hunks_no_lines_of_context PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_no_newline_marker PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_one_hunk PASSED pydiffx/tests/test_utils_unified_diffs.py::GetUnifiedDiffHunksTests::test_with_single_line_replace PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_new_change_after_new_change PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_new_change_after_new_file PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_new_file_after_new_file PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_new_file_before_change PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_with_content_crlf_and_line_endings_dos PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_with_content_crlf_and_line_endings_unix PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_with_content_crlf_and_no_line_endings PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_with_content_utf16 PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_with_content_utf32 PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_with_multi_commit_diff PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_with_simple_diff PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_with_unsupported_version PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_after_write_diff PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_before_change PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_before_file PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_before_file_write_meta PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_with_diff_type_binary PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_with_diff_type_invalid PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_with_diff_type_text PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_with_encoding_no_newline_line_endings PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_diff_with_non_bytes PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_meta_after_change_write_meta PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_meta_after_file_write_meta PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_meta_after_write_diff PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_meta_after_write_meta PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_meta_with_empty_dictionary PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_meta_with_invalid_type PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_after_change_write_meta PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_after_change_write_preamble PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_after_file_write_meta PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_after_main_write_meta PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_after_new_file PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_after_write_preamble PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_with_byte_string PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_with_empty_text PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_with_indent_0 PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_with_line_endings_dos PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_with_line_endings_invalid PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_with_line_endings_unix PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_with_mimetype_invalid PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_with_mimetype_text_markdown PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_with_mimetype_text_plain PASSED pydiffx/tests/test_writer.py::DiffXWriterTests::test_write_preamble_with_unicode_string PASSED =============================== warnings summary =============================== pydiffx/tests/test_reader.py: 10 warnings pydiffx/tests/test_utils_unified_diffs.py: 7 warnings pydiffx/tests/test_writer.py: 27 warnings pydiffx/tests/test_utils_text.py: 2 warnings pydiffx/tests/test_dom_objects.py: 22 warnings $(@D)/pydiffx/tests/testcases.py:68: DeprecationWarning: Please use assertRaisesRegex instead. with self.assertRaisesRegexp(exception, re.escape(message)): -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======== 176 passed, 68 warnings ========