
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Cannot enter WarningsChecker twice Β· Issue #4617 Β· pytest-dev/pytest
Description:
Include a detailed description of the bug or suggestion pytest.warns fails with RuntimeError: Cannot enter WarningsChecker(record=True) twice when parametrizing test function multiple times. Minimal example if possible This works just fi...
Website Age:
17 years and 9 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Education
- Mobile Technology & AI
Content Management System {π}
What CMS is github.com built with?
Github.com employs 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,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
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,013,426 paying customers.
The estimated monthly recurring revenue (MRR) is $21,056,387.
The estimated annual recurring revenues (ARR) are $252,676,649.
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 {π}
ronnypfannschmidt, commented, member, suprgeo, nicoddemus, warnings, pytest, sign, enter, issue, bug, import, pytestwarnsdeprecationwarning, matchmessage, type, plugin, stdlib, state, object, open, requests, projects, def, expectation, end, enhancement, feature, reentrant, inconsistent, traceback, filtering, navigation, code, pull, actions, security, warningschecker, closed, description, runtimeerror, warningscheckerrecordtrue, parametrizing, pytestmarkparametrizeexpectation, warningswarnmessage, deprecationwarning, pip, boto, future, mentioned, selfentered,
Topics {βοΈ}
accepts integer/float string pytest/src/_pytest/recwarn code im inclined assigned labels plugin reusable context manager comment metadata assignees features branch type things inconsistent state stdlib monkeypatching catch_warning consistent stdlib impl type projects enter/exit logic sup3rgeo mentioned projects milestone detailed description longstanding issue issue/pr initial state suggestion pytest warnings related warnings recorders api change open enter warningschecker record=true def test_parametrized_warnings argument independently virtual environment 3 sphinxcontrib-websupport 1 __tracebackhide__ = true inherited class bugfix/warningschecker theo bject big mix elevate part traceback filtering framework sections longer requiring oft hat flag back current idea complex plan milestone relationships personal information _entered = false _entered flag py2 fixup py2 fixups reentreant complexity properties
Payment Methods {π}
- Braintree
Questions {β}
- @RonnyPfannschmidt what would be the drawback of making them reentrant with the fix @nicoddemus proposed?
- Already have an account?
- Isn't this a bug instead of enhancement?
- Would you like to open a PR?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:Cannot enter WarningsChecker twice
articleBody:- [x] Include a detailed description of the bug or suggestion
`pytest.warns` fails with `RuntimeError: Cannot enter WarningsChecker(record=True) twice` when parametrizing test function multiple times.
- [x] Minimal example if possible
This works just fine:
```
import pytest
import warnings
@pytest.mark.parametrize("expectation", [
pytest.warns(DeprecationWarning,
match="Message A"),
pytest.warns(DeprecationWarning,
match="Message B"),
])
def test_parametrized_warnings(expectation):
with expectation:
warnings.warn("Message A", DeprecationWarning)
```
But when parametrizing another argument independently:
```
import pytest
import warnings
@pytest.mark.parametrize("other", [1, 2])
@pytest.mark.parametrize("expectation", [
pytest.warns(DeprecationWarning,
match="Message A"),
pytest.warns(DeprecationWarning,
match="Message B"),
])
def test_parametrized_warnings(other, expectation):
with expectation:
warnings.warn("Message A", DeprecationWarning)
```
Then I get this error:
`RuntimeError: Cannot enter WarningsChecker(record=True) twice`
- [x] pytest and operating system versions
`pytest 4.0.1` and `Windows 10`
- [x] `pip list` of the virtual environment you are using
```
Package Version
------------------------ ----------
alabaster 0.7.12
allure-pytest 2.5.4
allure-python-commons 2.5.4
apipkg 1.5
asn1crypto 0.24.0
asv 0.3.1
atomicwrites 1.2.1
attrs 18.2.0
aws-xray-sdk 0.95
Babel 2.6.0
backcall 0.1.0
beautifulsoup4 4.7.1
bleach 3.0.2
blosc 1.7.0
boto 2.49.0
boto3 1.9.75
botocore 1.12.75
Bottleneck 1.2.1
certifi 2018.11.29
cffi 1.11.5
chardet 3.0.4
colorama 0.4.1
coverage 4.5.2
cpplint 1.3.0
cryptography 2.4.2
cycler 0.10.0
Cython 0.29.2
decorator 4.3.0
docker 3.6.0
docker-pycreds 0.4.0
docutils 0.14
ecdsa 0.13
entrypoints 0.3
et-xmlfile 1.0.1
execnet 1.5.0
fastparquet 0.2.1
flake8 3.6.0
flake8-comprehensions 1.4.1
flake8-rst 0.7.0
future 0.17.1
gitdb2 2.0.5
GitPython 2.1.11
html5lib 1.0.1
hypothesis 3.86.7
idna 2.8
imagesize 1.1.0
ipykernel 5.1.0
ipython 7.2.0
ipython-genutils 0.2.0
isort 4.3.4
jdcal 1.4
jedi 0.13.2
Jinja2 2.10
jmespath 0.9.3
jsondiff 1.1.1
jsonpickle 1.0
jsonschema 2.6.0
jupyter-client 5.2.4
jupyter-core 4.4.0
kiwisolver 1.0.1
llvmlite 0.27.0
lxml 4.3.0
MarkupSafe 1.1.0
matplotlib 3.0.2
mccabe 0.6.1
mistune 0.8.4
mock 2.0.0
more-itertools 4.3.0
moto 1.3.7
nbconvert 5.3.1
nbformat 4.4.0
nbsphinx 0.4.1
numba 0.42.0
numexpr 2.6.9
numpy 1.15.4
numpydoc 0.8.0
openpyxl 2.5.12
packaging 18.0
pandas 0.23.4
pandocfilters 1.4.2
parso 0.3.1
pbr 5.1.1
PeakUtils 1.3.0
pickleshare 0.7.5
pip 10.0.1
pluggy 0.8.0
prompt-toolkit 2.0.7
py 1.7.0
pyaml 18.11.0
pyarrow 0.11.1
pycodestyle 2.4.0
pycparser 2.19
pycryptodome 3.7.2
pycryptodomex 3.7.2
pyflakes 2.0.0
Pygments 2.3.1
pyModbusTCP 0.1.8
pyparsing 2.3.0
pypiwin32 223
pytest 4.0.1
pytest-cov 2.6.1
pytest-forked 0.2
pytest-runner 4.2
pytest-xdist 1.25.0
python-dateutil 2.7.5
python-jose 2.0.2
pytz 2018.7
pywin32 224
PyYAML 3.13
pyzmq 17.1.2
requests 2.21.0
responses 0.10.5
s3fs 0.2.0
s3transfer 0.1.13
scipy 1.1.0
seaborn 0.9.0
setuptools 39.0.1
six 1.12.0
smmap2 2.0.5
snowballstemmer 1.2.1
soupsieve 1.6.2
Sphinx 1.8.3
sphinxcontrib-websupport 1.1.0
SQLAlchemy 1.2.15
statsmodels 0.9.0
tables 3.4.4
testpath 0.4.2
thrift 0.11.0
tornado 5.1.1
traitlets 4.3.2
Typhoon-HIL-API 1.3.0
TyphoonTest 1.2.1
urllib3 1.24.1
wcwidth 0.1.7
webencodings 0.5.1
websocket-client 0.54.0
Werkzeug 0.14.1
win-inet-pton 1.0.1
wrapt 1.10.11
xarray 0.11.2
xlrd 1.2.0
XlsxWriter 1.1.2
xlwt 1.3.0
xmltodict 0.11.0
```
author:
url:https://github.com/Sup3rGeo
type:Person
name:Sup3rGeo
datePublished:2019-01-08T16:25:21.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:10
url:https://github.com/4617/pytest/issues/4617
context:https://schema.org
headline:Cannot enter WarningsChecker twice
articleBody:- [x] Include a detailed description of the bug or suggestion
`pytest.warns` fails with `RuntimeError: Cannot enter WarningsChecker(record=True) twice` when parametrizing test function multiple times.
- [x] Minimal example if possible
This works just fine:
```
import pytest
import warnings
@pytest.mark.parametrize("expectation", [
pytest.warns(DeprecationWarning,
match="Message A"),
pytest.warns(DeprecationWarning,
match="Message B"),
])
def test_parametrized_warnings(expectation):
with expectation:
warnings.warn("Message A", DeprecationWarning)
```
But when parametrizing another argument independently:
```
import pytest
import warnings
@pytest.mark.parametrize("other", [1, 2])
@pytest.mark.parametrize("expectation", [
pytest.warns(DeprecationWarning,
match="Message A"),
pytest.warns(DeprecationWarning,
match="Message B"),
])
def test_parametrized_warnings(other, expectation):
with expectation:
warnings.warn("Message A", DeprecationWarning)
```
Then I get this error:
`RuntimeError: Cannot enter WarningsChecker(record=True) twice`
- [x] pytest and operating system versions
`pytest 4.0.1` and `Windows 10`
- [x] `pip list` of the virtual environment you are using
```
Package Version
------------------------ ----------
alabaster 0.7.12
allure-pytest 2.5.4
allure-python-commons 2.5.4
apipkg 1.5
asn1crypto 0.24.0
asv 0.3.1
atomicwrites 1.2.1
attrs 18.2.0
aws-xray-sdk 0.95
Babel 2.6.0
backcall 0.1.0
beautifulsoup4 4.7.1
bleach 3.0.2
blosc 1.7.0
boto 2.49.0
boto3 1.9.75
botocore 1.12.75
Bottleneck 1.2.1
certifi 2018.11.29
cffi 1.11.5
chardet 3.0.4
colorama 0.4.1
coverage 4.5.2
cpplint 1.3.0
cryptography 2.4.2
cycler 0.10.0
Cython 0.29.2
decorator 4.3.0
docker 3.6.0
docker-pycreds 0.4.0
docutils 0.14
ecdsa 0.13
entrypoints 0.3
et-xmlfile 1.0.1
execnet 1.5.0
fastparquet 0.2.1
flake8 3.6.0
flake8-comprehensions 1.4.1
flake8-rst 0.7.0
future 0.17.1
gitdb2 2.0.5
GitPython 2.1.11
html5lib 1.0.1
hypothesis 3.86.7
idna 2.8
imagesize 1.1.0
ipykernel 5.1.0
ipython 7.2.0
ipython-genutils 0.2.0
isort 4.3.4
jdcal 1.4
jedi 0.13.2
Jinja2 2.10
jmespath 0.9.3
jsondiff 1.1.1
jsonpickle 1.0
jsonschema 2.6.0
jupyter-client 5.2.4
jupyter-core 4.4.0
kiwisolver 1.0.1
llvmlite 0.27.0
lxml 4.3.0
MarkupSafe 1.1.0
matplotlib 3.0.2
mccabe 0.6.1
mistune 0.8.4
mock 2.0.0
more-itertools 4.3.0
moto 1.3.7
nbconvert 5.3.1
nbformat 4.4.0
nbsphinx 0.4.1
numba 0.42.0
numexpr 2.6.9
numpy 1.15.4
numpydoc 0.8.0
openpyxl 2.5.12
packaging 18.0
pandas 0.23.4
pandocfilters 1.4.2
parso 0.3.1
pbr 5.1.1
PeakUtils 1.3.0
pickleshare 0.7.5
pip 10.0.1
pluggy 0.8.0
prompt-toolkit 2.0.7
py 1.7.0
pyaml 18.11.0
pyarrow 0.11.1
pycodestyle 2.4.0
pycparser 2.19
pycryptodome 3.7.2
pycryptodomex 3.7.2
pyflakes 2.0.0
Pygments 2.3.1
pyModbusTCP 0.1.8
pyparsing 2.3.0
pypiwin32 223
pytest 4.0.1
pytest-cov 2.6.1
pytest-forked 0.2
pytest-runner 4.2
pytest-xdist 1.25.0
python-dateutil 2.7.5
python-jose 2.0.2
pytz 2018.7
pywin32 224
PyYAML 3.13
pyzmq 17.1.2
requests 2.21.0
responses 0.10.5
s3fs 0.2.0
s3transfer 0.1.13
scipy 1.1.0
seaborn 0.9.0
setuptools 39.0.1
six 1.12.0
smmap2 2.0.5
snowballstemmer 1.2.1
soupsieve 1.6.2
Sphinx 1.8.3
sphinxcontrib-websupport 1.1.0
SQLAlchemy 1.2.15
statsmodels 0.9.0
tables 3.4.4
testpath 0.4.2
thrift 0.11.0
tornado 5.1.1
traitlets 4.3.2
Typhoon-HIL-API 1.3.0
TyphoonTest 1.2.1
urllib3 1.24.1
wcwidth 0.1.7
webencodings 0.5.1
websocket-client 0.54.0
Werkzeug 0.14.1
win-inet-pton 1.0.1
wrapt 1.10.11
xarray 0.11.2
xlrd 1.2.0
XlsxWriter 1.1.2
xlwt 1.3.0
xmltodict 0.11.0
```
author:
url:https://github.com/Sup3rGeo
type:Person
name:Sup3rGeo
datePublished:2019-01-08T16:25:21.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:10
url:https://github.com/4617/pytest/issues/4617
Person:
url:https://github.com/Sup3rGeo
name:Sup3rGeo
url:https://github.com/Sup3rGeo
name:Sup3rGeo
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:10
interactionType:https://schema.org/CommentAction
userInteractionCount:10
External Links {π}(2)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- GSAP
- 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