Skip to content

Commit 975700a

Browse files
committed
Fix PyPy json loads
1 parent 04a21e0 commit 975700a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opentelemetry-sdk/tests/metrics/integration_test/test_console_exporter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from io import StringIO
1616
from json import loads
17+
from os import linesep
1718
from unittest import TestCase
1819
from unittest.mock import Mock, patch
1920

@@ -117,7 +118,8 @@ def test_console_exporter_with_exemplars(self):
117118
provider.shutdown()
118119

119120
output.seek(0)
120-
result_0 = loads("".join(output.readlines()))
121+
joined_output = "".join(output.readlines())
122+
result_0 = loads(joined_output.strip(linesep))
121123

122124
self.assertGreater(len(result_0), 0)
123125

0 commit comments

Comments
 (0)