Opened 6 years ago
Closed 6 years ago
#3774 closed defect (fixed)
lib/gis/testsuite/test_parser_json.py are failing
Reported by: | pmav99 | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Tests | Version: | svn-trunk |
Keywords: | Cc: | ||
CPU: | Unspecified | Platform: | Unspecified |
Description
The tests on lib/gis/testsuite/test_parser_json.py
are failing both on Python 2 + 3.
- [{'param': 'input', 'value': 'hospitals'}, + [{'param': 'input', 'value': 'hospitals@PERMANENT'},
The tests are also using simplejson
which is 3rd party
lib and needs to be installed. I would advise changing that to json
. A simple s/simplejson/json/g
should do it.
Change History (5)
comment:1 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 6 years ago
Thanks for catching this.
Replying to pmav99:
- [{'param': 'input', 'value': 'hospitals'}, + [{'param': 'input', 'value': 'hospitals@PERMANENT'},
... this code I didn't find. Where is that located?
comment:3 by , 6 years ago
@neteler yes, I am sorry, I should have elaborated a bit more.
That was the output of the tests that show the differences between expected and actual output. The lines that throw the errors are 46 and 74.
I don't feel comfortable suggesting a fix here, because I am not familiar enough with fully qualified map names and their nuances. In other words I can't really judge if the error is in the test itself or in the tested code. But the test is failing and needs to be fixed.
comment:4 by , 6 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:5 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Just ran the test locally:
bin.x86_64-pc-linux-gnu/grass77 -c ./demolocation/stefan --exec python ./lib/gis/testsuite/test_parser_json.py
and it passed without error, both with demolocation and nc_spm_08_grass7.
Closing the ticket, feel free to reopen if needed
In 74162: