Skip to content

Skip Python2 evaluation tests on AppVeyor - #4053

Merged
gvanrossum merged 6 commits into
python:masterfrom
emmatyping:appveyorfix
Oct 4, 2017
Merged

gvanrossum merged 6 commits into
python:masterfrom
emmatyping:appveyorfix

Conversation

@emmatyping

Copy link
Copy Markdown
Member

Fixes #3895

This splits the pytest run into a new command so that tests ending in _python2eval are skipped. This is done in the appveyor.yml so that these tests still can be run locally on Windows. Hopefully, we will no longer have issues with pytest crashing the test suite after this.

@emmatyping emmatyping changed the title Skip Python2 evaluation tests on AppVeyor [WIP] Skip Python2 evaluation tests on AppVeyor Oct 3, 2017
@emmatyping emmatyping changed the title [WIP] Skip Python2 evaluation tests on AppVeyor Skip Python2 evaluation tests on AppVeyor Oct 3, 2017
Comment thread test-data/unit/python2eval.test Outdated


[case testAbs2_python2]
[case testAbs2_python2eval]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I really would rather not have to rename all the tests to conform to this new naming convention. I think you can select for just the pythoneval tests with -k PythonEvaluationSuite, so to combine these two you can run

pytest -k "PythonEvaluationSuite and python2"

(the Windows script will require some extra quoting).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Okay I will try that route.

Comment thread mypy/test/testpythoneval.py Outdated
assert testcase.old_cwd is not None, "test was not properly set up"
mypy_cmdline = ['--show-traceback']
py2 = testcase.name.lower().endswith('python2')
py2 = 'python2' in testcase.name.lower()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this should be restored to exactly what it was before. I'll see if I can do the edit online myself.

@gvanrossum
gvanrossum merged commit df951fb into python:master Oct 4, 2017
@emmatyping
emmatyping deleted the appveyorfix branch April 12, 2018 08:09
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