
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Running ipytest.main multiple times triggers rewrite warnings for plugins Β· Issue #5432 Β· pytest-dev/pytest
Description:
When running ipytest.main multiple times inside the same python process, the rewrite warning ("Module already imported so cannot be rewritten:" ...) is trigged for plugins. A minimal example is: pip install pytest pytest_asyncio import p...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Mobile Technology & AI
- Technology & Computing
- Fitness & Wellness
Content Management System {π}
What CMS is github.com built with?
Github.com uses 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 14,039,867 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 7,005,724 paying customers.
The estimated monthly recurring revenue (MRR) is $29,424,040.
The estimated annual recurring revenues (ARR) are $353,088,477.
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?
Keywords {π}
rewrite, asottile, pytest, warnings, import, chmp, pytestmain, plugins, commented, multiple, issue, imported, modules, hook, running, ipytestmain, times, rewritten, calls, member, assertion, sign, triggers, python, warning, module, author, tests, information, tpy, projects, process, pytestasyncio, case, packages, detailed, mechanism, doesnt, pdb, pytestassertrewritewarning, added, navigation, open, pull, requests, actions, security, closed, description, inside,
Topics {βοΈ}
768 pytest/src/_pytest/config/__init__ /pytest/src/_pytest/config/__init__ /src/_pytest/assertion/rewrite org/en/latest/warnings activity chmp changed 6/site-packages/pytest_asyncio/plugin making multiple calls ipytest calls pytest monkey patching _pytest assertion import hook running ipytest /venv/lib/python3 comment metadata assignees assigned labels topic original import hook making subsequent calls 66672a7 bors added previous rewritten imports type projects warning_types import pytestassertrewritewarning py index ce698f368 projects milestone running pytest==4 rewrite warnings asottile mentioned multiple invocations run tests pip list caching mechanism import system quick fix open rewrite related detailed description rewrite warning pytest_asyncio plugin calling pytest pytest installs pytest rewrote upgraded pytest python process modules['pytest_asyncio'] ipytest author __init__ py t2 nbval plugin 6on osx 10 suggestion output virtual environment
Payment Methods {π}
- Braintree
Questions {β}
- @asottile should we close this and track #5433 only, or would you like to keep this open?
- Already have an account?
- This usage pattern is at least not recommend which probably puts this into not supported / wontfix territory?
- Main()?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:Running ipytest.main multiple times triggers rewrite warnings for plugins
articleBody:When running `ipytest.main` multiple times inside the same python process, the rewrite warning ("Module already imported so cannot be rewritten:" ...) is trigged for plugins. A minimal example is:
```bash
pip install pytest pytest_asyncio
```
```python
import pytest
pytest.main()
pytest.main()
```
My real use case is: I'm using [ipytest](github.com/chmp/ipytest) (I'm also the author) to run tests inside jupyter notebooks with pytest. Internally, `ipytest` calls `pytest.main`. Hence, the rewrite warnings are triggered. The `pytest_asyncio` plugin is just an example, previously I observed the same behavior with the `nbval` plugin.
I'm running `pytest==4.2.6`on OSX 10.13.6. The packages are:
<details>
```
Package Version Location
------------------ -------- ----------------------------------------
aiohttp 3.5.4
appnope 0.1.0
async-timeout 3.0.1
atomicwrites 1.3.0
attrs 19.1.0
backcall 0.1.0
bleach 3.1.0
certifi 2019.3.9
chardet 3.0.4
commonmark 0.9.0
decorator 4.4.0
defusedxml 0.6.0
entrypoints 0.3
future 0.17.1
idna 2.8
importlib-metadata 0.17
ipykernel 5.1.1
ipytest 0.6.0
ipython 7.5.0
ipython-genutils 0.2.0
ipywidgets 7.4.2
jedi 0.13.3
Jinja2 2.10.1
jsonschema 3.0.1
jupyter 1.0.0
jupyter-client 5.2.4
jupyter-console 6.0.0
jupyter-core 4.4.0
keyring 19.0.2
MarkupSafe 1.1.1
mistletoe 0.7.2
mistune 0.8.4
more-itertools 7.0.0
multidict 4.5.2
nbconvert 5.5.0
nbformat 4.4.0
notebook 5.7.8
packaging 19.0
pandocfilters 1.4.2
parso 0.4.0
pexpect 4.7.0
pickleshare 0.7.5
pip 19.1.1
pluggy 0.12.0
prometheus-client 0.7.0
prompt-toolkit 2.0.9
ptyprocess 0.6.0
py 1.8.0
Pygments 2.4.2
pyparsing 2.4.0
pyrsistent 0.15.2
pytest 4.6.2
pytest-asyncio 0.10.0
python-dateutil 2.8.0
pyzmq 18.0.1
qtconsole 4.5.1
requests 2.22.0
Send2Trash 1.5.0
setuptools 41.0.1
six 1.12.0
terminado 0.8.2
testpath 0.4.2
tornado 6.0.2
traitlets 4.3.2
urllib3 1.25.3
wcwidth 0.1.7
webencodings 0.5.1
wheel 0.33.4
widgetsnbextension 3.4.2
yarl 1.3.0
zipp 0.5.1
```
</details>
Checklist:
- [x] a detailed description of the bug or suggestion
- [x] output of `pip list` from the virtual environment you are using
- [x] pytest and operating system versions
- [x] minimal example if possible
author:
url:https://github.com/chmp
type:Person
name:chmp
datePublished:2019-06-10T20:51:41.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:8
url:https://github.com/5432/pytest/issues/5432
context:https://schema.org
headline:Running ipytest.main multiple times triggers rewrite warnings for plugins
articleBody:When running `ipytest.main` multiple times inside the same python process, the rewrite warning ("Module already imported so cannot be rewritten:" ...) is trigged for plugins. A minimal example is:
```bash
pip install pytest pytest_asyncio
```
```python
import pytest
pytest.main()
pytest.main()
```
My real use case is: I'm using [ipytest](github.com/chmp/ipytest) (I'm also the author) to run tests inside jupyter notebooks with pytest. Internally, `ipytest` calls `pytest.main`. Hence, the rewrite warnings are triggered. The `pytest_asyncio` plugin is just an example, previously I observed the same behavior with the `nbval` plugin.
I'm running `pytest==4.2.6`on OSX 10.13.6. The packages are:
<details>
```
Package Version Location
------------------ -------- ----------------------------------------
aiohttp 3.5.4
appnope 0.1.0
async-timeout 3.0.1
atomicwrites 1.3.0
attrs 19.1.0
backcall 0.1.0
bleach 3.1.0
certifi 2019.3.9
chardet 3.0.4
commonmark 0.9.0
decorator 4.4.0
defusedxml 0.6.0
entrypoints 0.3
future 0.17.1
idna 2.8
importlib-metadata 0.17
ipykernel 5.1.1
ipytest 0.6.0
ipython 7.5.0
ipython-genutils 0.2.0
ipywidgets 7.4.2
jedi 0.13.3
Jinja2 2.10.1
jsonschema 3.0.1
jupyter 1.0.0
jupyter-client 5.2.4
jupyter-console 6.0.0
jupyter-core 4.4.0
keyring 19.0.2
MarkupSafe 1.1.1
mistletoe 0.7.2
mistune 0.8.4
more-itertools 7.0.0
multidict 4.5.2
nbconvert 5.5.0
nbformat 4.4.0
notebook 5.7.8
packaging 19.0
pandocfilters 1.4.2
parso 0.4.0
pexpect 4.7.0
pickleshare 0.7.5
pip 19.1.1
pluggy 0.12.0
prometheus-client 0.7.0
prompt-toolkit 2.0.9
ptyprocess 0.6.0
py 1.8.0
Pygments 2.4.2
pyparsing 2.4.0
pyrsistent 0.15.2
pytest 4.6.2
pytest-asyncio 0.10.0
python-dateutil 2.8.0
pyzmq 18.0.1
qtconsole 4.5.1
requests 2.22.0
Send2Trash 1.5.0
setuptools 41.0.1
six 1.12.0
terminado 0.8.2
testpath 0.4.2
tornado 6.0.2
traitlets 4.3.2
urllib3 1.25.3
wcwidth 0.1.7
webencodings 0.5.1
wheel 0.33.4
widgetsnbextension 3.4.2
yarl 1.3.0
zipp 0.5.1
```
</details>
Checklist:
- [x] a detailed description of the bug or suggestion
- [x] output of `pip list` from the virtual environment you are using
- [x] pytest and operating system versions
- [x] minimal example if possible
author:
url:https://github.com/chmp
type:Person
name:chmp
datePublished:2019-06-10T20:51:41.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:8
url:https://github.com/5432/pytest/issues/5432
Person:
url:https://github.com/chmp
name:chmp
url:https://github.com/chmp
name:chmp
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:8
interactionType:https://schema.org/CommentAction
userInteractionCount:8
External Links {π}(3)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
- Moment.js
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