Skip to content

Conversation

@kellyjfitz
Copy link

When running tests on a Windows machine the scatter chart and area chart tests fail when attempting to load sample json, due to encoding issues.
Specifying encoding as utf-8 fixes the problem.

Example fail
======================================================================== FAILURES ========================================================================= __________________________________________________________ TestAreaChartGet.test_get_tate_sample __________________________________________________________ tests\integration\test_area_chart.py:268: in test_get_tate_sample sample_json = load_sample_json("tate.json") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests\integration\test_area_chart.py:17: in load_sample_json return json.load(f) ^^^^^^^^^^^^ C:\Python313\Lib\json_init_.py:293: in load return loads(fp.read(), ^^^^^^^^^ C:\Python313\Lib\encodings\cp1252.py:23: in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 9330: character maps to <undefined> ================================================================= short test summary info ================================================================= FAILED tests/integration/test_area_chart.py::TestAreaChartGet::test_get_tate_sample - UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 9330: character maps to <undefined> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ============================================================= 1 failed, 177 passed in 20.54s ==============================================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant