Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix Python unittests #1961

Closed
wants to merge 3 commits into from
Closed

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Nov 8, 2019

Add pytest to our Travis CI jobs to run 27 Python tests.

Checklist
  • npm install && npm test passes
  • tests are included
  • documentation is changed or added
  • commit message follows commit guidelines
Description of change

@cclauss
Copy link
Contributor Author

cclauss commented Nov 9, 2019

@joaocgreis Can you please take a look at the failing Windows tests? A fix did not jump out at me.

@@ -1085,6 +1085,7 @@ def testConvertToMSBuildSettings_full_synthetic(self):
'GenerateManifest': 'true',
'IgnoreImportLibrary': 'true',
'LinkIncremental': 'false'}}
self.maxDiff = 9999 # on failure display a long diff
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.maxDiff = None if you don't really want an upper limit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood. These are reasonable limits for these test results.

@richardlau
Copy link
Member

@joaocgreis Can you please take a look at the failing Windows tests? A fix did not jump out at me.

I think part of the issue is that Travis has Visual Studio 2017 on Windows and the version of gyp in this repository doesn't detect that because we have the VS detection in JavaScript (see #1952 (comment)) outside of gyp.

@joaocgreis
Copy link
Member

joaocgreis commented Nov 13, 2019

@cclauss pushed a fix for the issues on Windows.

There is still a failure with Python 3.5 that looks like a real issue.

@joaocgreis
Copy link
Member

Travis had failed on my repo earlier, but passed on a new run. Possibly some caching issue or something that got fixed. I guess this is good then!

rvagg pushed a commit that referenced this pull request Nov 18, 2019
PR-URL: #1961
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: João Reis <reis@janeasystems.com>
@rvagg
Copy link
Member

rvagg commented Nov 18, 2019

04da736

@rvagg rvagg closed this Nov 18, 2019
rvagg pushed a commit that referenced this pull request Nov 18, 2019
PR-URL: #1961
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: João Reis <reis@janeasystems.com>
@cclauss cclauss deleted the Python-tests branch November 18, 2019 04:20
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.

5 participants