FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixing MapScript unit tests for Python2 by geographika · Pull Request #5569 · MapServer/MapServer · GitHub

Fixing MapScript unit tests for Python2 - #5569

Merged
Schpidi merged 48 commits into
MapServer:masterfrom
geographika:py2-fixes
Mar 23, 2018
Merged

Fixing MapScript unit tests for Python2#5569
Schpidi merged 48 commits into
MapServer:masterfrom
geographika:py2-fixes

Conversation

Copy link
Copy Markdown
Member

To help check the usability of the Python3 MapScript bindings (see #5561, #5290) it will be useful to run the MapScript test suite to see which tests fail.

The Python2 unit tests have not been maintained for a number of years. This pull request aims to fix the tests in Python2 before running on Python3.

Some tests can be fixed by simply updating the API, such as adding A values to RGBA related-tests. Other failing tests are more complicated - comments have been added to individual commits.

Several failing tests relate to creating new image objects - marked with comments in the code noting "imageObj() is severely broken and should not be used". It may be time to clean up this code and remove the section of code marked #ifdef FORCE_BROKEN_GD_CODE

Several errors also relate to testing the getFeature/getResultsShape methods. These no longer exist, see:

Implemented RFC 65 which improves and simplifies one-pass query support. This causes
a few MapScript regressions with getShape/getFeature/getResultsShape. (#3647)

These tests have been commented out for the moment, and may be deleted if no longer relevant.

geographika changed the title [WIP] Fixing MapScript unit tests for Python2 Fixing MapScript unit tests for Python2 Mar 22, 2018

Schpidi commented Mar 23, 2018

Copy link
Copy Markdown
Member

Impressive, I'm just going to merge this to unblock further good work. Thanks a lot!

Schpidi merged commit 380d190 into MapServer:master Mar 23, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL