Skip to content

Commit

Permalink
Fix PyPy json loads
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Sep 4, 2024
1 parent 04a21e0 commit 975700a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from io import StringIO
from json import loads
from os import linesep
from unittest import TestCase
from unittest.mock import Mock, patch

Expand Down Expand Up @@ -117,7 +118,8 @@ def test_console_exporter_with_exemplars(self):
provider.shutdown()

output.seek(0)
result_0 = loads("".join(output.readlines()))
joined_output = "".join(output.readlines())
result_0 = loads(joined_output.strip(linesep))

self.assertGreater(len(result_0), 0)

Expand Down

0 comments on commit 975700a

Please sign in to comment.