Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8894e8f

Browse files
authoredFeb 24, 2021
handle 3.8+ pandas adding a newline at end (#249)
1 parent f0a158e commit 8894e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tests/test_output_formats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ def test_json_formatter_converts_to_expected_string(self):
793793
formatter = DataFrameOutputFormatter(OutputFormat.JSON)
794794
output = formatter.get_formatted_output(self.test_df)
795795
assert (
796-
output
796+
output.strip()
797797
== '{"string_column":"string1","int_column":42,"null_column":null}\n{"string_column":"string2","int_column":43,"null_column":null}'
798798
)
799799

0 commit comments

Comments
 (0)
Please sign in to comment.