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

Switch from nose to pytest #5282

Merged
merged 15 commits into from Dec 1, 2017
Merged

Switch from nose to pytest #5282

merged 15 commits into from Dec 1, 2017

Conversation

bmw
Copy link
Member

@bmw bmw commented Nov 29, 2017

Fixes #4377 and #4825. nose is no longer maintained so let's switch to a framework that is.

A couple things to note here:

  • _multiprocess_can_split_ lines were for nose's multiprocessing plugin as documented here and have been removed.
  • Our coverage changed a bit due to nose improperly reporting the coverage percentage and pytest reporting coverage to the nearest hundreth of a percent rather than the nearest whole percentage point. route53 was particularly affected because nose wasn't reporting coverage on an entire file.

Copy link
Contributor

@jsha jsha left a comment

Choose a reason for hiding this comment

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

Looks good to me other than this one comment

@@ -6,13 +6,15 @@ FROM debian:wheezy
# Add an unprivileged user:
RUN useradd --create-home --home-dir /home/lea --shell /bin/bash --groups sudo --uid 1000 lea

# Install pip, sudo, openssl, and nose:
# Install pip, sudo, openssl, and pytest:
Copy link
Contributor

Choose a reason for hiding this comment

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

The lines immediately below this don't install pytest, so just remove pytest from this line. Same edit for anything starting with "Install pip, " in this change.

Copy link
Member Author

Choose a reason for hiding this comment

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

I made the pytest changes.

I think the "Install pip" comments are accurate as we do install pip from the package manager, but then update it through pipstrap so I changed comments to clarify this.

@bmw bmw merged commit 48173ed into master Dec 1, 2017
@bmw bmw deleted the no-nose branch December 1, 2017 19:00
tobypeterson added a commit to macports/macports-ports that referenced this pull request Oct 28, 2020
Schamschula added a commit to Schamschula/macports that referenced this pull request Oct 28, 2020
@bmw bmw mentioned this pull request Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants