Skip to content

[WIP] Pytest test suite completely independent of nose - #8321

Closed
HolgerPeters wants to merge 3 commits into
scikit-learn:masterfrom
HolgerPeters:pytest-migration
Closed

HolgerPeters wants to merge 3 commits into
scikit-learn:masterfrom
HolgerPeters:pytest-migration

Conversation

@HolgerPeters

Copy link
Copy Markdown
Contributor

Reference Issue

Addresses issue #7319

What does this implement/fix? Explain your changes.

With this PR I replace nosetest by py.test. Surprised how easy the port was in general.

  • replaced a few setup and teardown function with pytest style fixtures.
  • used pytest.mark.parametrize in many places that featured yield-style tests.
  • a lot of yield-style tests remain that should be fixed probably, due to the pytest deprecation warning.
  • I did not replace assert_true and assert_false, etc.

This PR is not as polished as I would normally prepare a PR to be, maybe with some feedback & help , especially with regards to the CI infrastructure, we can get it into a mergeable state.

PS: As far as I can tell, flake8 is used for style checks, I would suggest moving to https://pypi.python.org/pypi/pytest-flake8 which integrates nicely with flake8.

@HolgerPeters HolgerPeters changed the title Pytest migration [WIP] Pytest migration Feb 8, 2017
@HolgerPeters HolgerPeters mentioned this pull request Feb 9, 2017
@HolgerPeters HolgerPeters changed the title [WIP] Pytest migration [WIP] Pytest test suite completely independent of nose Feb 9, 2017
@rth rth mentioned this pull request May 7, 2018
3 tasks done
@rth

rth commented May 7, 2018

Copy link
Copy Markdown
Member

This PR was continued in #11074

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