
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
`pytest==8.3.1` collects tests from Python dependencies within `conda` environments (regression from `8.2.2`) Β· Issue #12652 Β· pytest-dev/pytest
Description:
a detailed description of the bug or problem you are having output of pip list from the virtual environment you are using NB: Before and after failing CI runs: https://www.diffchecker.com/SReU8wCR/ pytest and operating system versions 8....
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Mobile Technology & AI
- Science
Content Management System {π}
What CMS is github.com built with?
Github.com is built with WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,653,780 visitors per month in the current month.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 5,316,107 paying customers.
The estimated monthly recurring revenue (MRR) is $22,327,651.
The estimated annual recurring revenues (ARR) are $267,931,808.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
pytest, tests, joshuacwnewton, commented, conda, python, dependencies, regression, jezdez, collects, norecursedirs, errors, issue, set, collected, bluetech, sign, environments, windows, setupcfg, items, venv, path, ronnypfannschmidt, actions, projects, virtual, github, file, addopts, root, collecting, venvs, member, pyvenvcfg, author, import, navigation, pull, requests, security, description, problem, pip, environment, failing, toolpytest, verbose, showcapturestderr, tbnative,
Topics {βοΈ}
/pytest-dev/pytest/blob/8 pytest-related import errors github actions runners ~/repos/spinalcordtoolbox/$ find joshuacwnewton edits author /python/envs/venv_sct/pyvenv conda prefixes/envs personal information `pytest==8 conda prefix inside support venv detection modern venv left activity joshuacwnewton changed 1/src/_pytest/main run automated tested similar easy check comment metadata assignees /python/envs/venv_sct/ _in_venv function https /projects/projectx local linux machine /testing` windows specifically reports failing ci runs type projects projects milestone involves collection conda prefix /sreu8wcr/ pytest running pytest jezdez mentioned conda environments conda env `conda` environments detailed description venv directory return path pip list fewer errors included packages python console windows machine python dependencies virtual environment additional options virtual environments project folder org/pep-0405/] true exploring investigate compatibility assigned labels
Payment Methods {π}
- Braintree
Questions {β}
- 1 that triggered this?
- Already have an account?
- Cfg file?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:`pytest==8.3.1` collects tests from Python dependencies within `conda` environments (regression from `8.2.2`)
articleBody:<!--
Thanks for submitting an issue!
Quick check-list while reporting bugs:
-->
- [X] a detailed description of the bug or problem you are having
- [X] output of `pip list` from the virtual environment you are using
- NB: Before and after failing CI runs: https://www.diffchecker.com/SReU8wCR/
- [X] pytest and operating system versions
- 8.3.1, multiple different GitHub Actions runners (`windows-2019`, `ubuntu-2022`, etc.)
- [X] minimal example if possible
----
We have the following `setup.cfg` file:
```ini
[tool:pytest]
addopts = --verbose --show-capture=stderr --tb=native
python_files = testing/**/test_*.py
# NB: norecursedirs is *not* set
```
When running `pytest` (with no additional options) in the [root of our repository](https://github.com/spinalcordtoolbox/spinalcordtoolbox), we see the following behavior:
- `pytest==8.2.2`: Only our tests are collected.
- `pytest==8.3.1`: Our tests _and_ the tests of our dependencies are collected, leading to many errors.
- `collecting ... collected 367457 items / 408 errors / 100 skipped` (Woof!)
----
Changing our `setup.cfg` to the following didn't fix the problem either:
```ini
[tool:pytest]
addopts = --verbose --show-capture=stderr --tb=native
testpaths = testing
python_files = test_*.py
```
The fix I used was adding `norecursedirs = {name_of_venv}`
----
Since this involves collection in virtual environments, the reason for the regression might be related to changes in:
- https://github.com/pytest-dev/pytest/pull/12545
Notably, we use a `conda` env with `pip` packages installed inside, which may subvert the expectations of the changes in the above PR.
author:
url:https://github.com/joshuacwnewton
type:Person
name:joshuacwnewton
datePublished:2024-07-22T19:08:41.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:16
url:https://github.com/12652/pytest/issues/12652
context:https://schema.org
headline:`pytest==8.3.1` collects tests from Python dependencies within `conda` environments (regression from `8.2.2`)
articleBody:<!--
Thanks for submitting an issue!
Quick check-list while reporting bugs:
-->
- [X] a detailed description of the bug or problem you are having
- [X] output of `pip list` from the virtual environment you are using
- NB: Before and after failing CI runs: https://www.diffchecker.com/SReU8wCR/
- [X] pytest and operating system versions
- 8.3.1, multiple different GitHub Actions runners (`windows-2019`, `ubuntu-2022`, etc.)
- [X] minimal example if possible
----
We have the following `setup.cfg` file:
```ini
[tool:pytest]
addopts = --verbose --show-capture=stderr --tb=native
python_files = testing/**/test_*.py
# NB: norecursedirs is *not* set
```
When running `pytest` (with no additional options) in the [root of our repository](https://github.com/spinalcordtoolbox/spinalcordtoolbox), we see the following behavior:
- `pytest==8.2.2`: Only our tests are collected.
- `pytest==8.3.1`: Our tests _and_ the tests of our dependencies are collected, leading to many errors.
- `collecting ... collected 367457 items / 408 errors / 100 skipped` (Woof!)
----
Changing our `setup.cfg` to the following didn't fix the problem either:
```ini
[tool:pytest]
addopts = --verbose --show-capture=stderr --tb=native
testpaths = testing
python_files = test_*.py
```
The fix I used was adding `norecursedirs = {name_of_venv}`
----
Since this involves collection in virtual environments, the reason for the regression might be related to changes in:
- https://github.com/pytest-dev/pytest/pull/12545
Notably, we use a `conda` env with `pip` packages installed inside, which may subvert the expectations of the changes in the above PR.
author:
url:https://github.com/joshuacwnewton
type:Person
name:joshuacwnewton
datePublished:2024-07-22T19:08:41.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:16
url:https://github.com/12652/pytest/issues/12652
Person:
url:https://github.com/joshuacwnewton
name:joshuacwnewton
url:https://github.com/joshuacwnewton
name:joshuacwnewton
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:16
interactionType:https://schema.org/CommentAction
userInteractionCount:16
External Links {π}(4)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net