-
Notifications
You must be signed in to change notification settings - Fork 24
1.14.0: pytest fails in testing/test_basic.py::test_async_fixture
unit
#165
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
Comments
Hey, thanks for keeping this available as an RPM and for the issue report here. It looks like in 3ac4209#diff-16608fad1d5f9586e8032d1202cf5d793becd18a6ae25d069e2615056d0361cdR192 I went and added Thanks again! |
One sec .. please allow me to check commit 😋 |
Yep it looks like this PR fixes reported issue. ================================================================================== short test summary info ==================================================================================
SKIPPED [2] testing/test_basic.py:77: reactor is default not qt5reactor
SKIPPED [2] testing/test_basic.py:77: reactor is default not asyncio
========================================================================= 56 passed, 4 skipped in 76.00s (0:01:15) ========================================================================== BTW .. looking on above output and https://pypi.org/project/asyncio/#history I think that keeping that optional test dependency of Thank you 😄 |
|
I'm trying to do a little improvement first, but here's the PR for a v1.14.1 version bump #169. Hopefully I'll have it so that the GitHub release will trigger publishing to PyPI. |
Alrighty, got it out. I think. https://pypi.org/project/pytest-twisted/1.14.1/ Let me know if you can build off that ok. |
Just found that my automation processed github release email notariatom and it was able build updated package and pytest passed without issues. ============================= test session starts ==============================
platform linux -- Python 3.9.18, pytest-8.1.1, pluggy-1.4.0
rootdir: /home/tkloczko/rpmbuild/BUILD/pytest-twisted-1.14.1
configfile: pytest.ini
plugins: twisted-1.14.1, hypothesis-6.99.6
collected 60 items
testing/test_basic.py .....................................ss.ss........ [ 83%]
.......... [100%]
=========================== short test summary info ============================
SKIPPED [2] testing/test_basic.py:77: reactor is default not qt5reactor
SKIPPED [2] testing/test_basic.py:77: reactor is default not asyncio
=================== 56 passed, 4 skipped in 74.48s (0:01:14) =================== Thank you 👍 Would you accept PR which drops python<=3.7 support? (3.7 was EOSed June last year) |
https://github.com/pytest-dev/pytest-twisted#python-2-support-plans
If supporting older versions is causing you trouble, I would consider that part of the cost of maintenance of this project even though you do that work outside of this repository. Feel free to open another ticket to discuss the hassles you run into due to the code supporting older versions. Thanks for the report and continued repackaging of this project. Cheers. |
No .. simple in my distro I'm trying at the moment update all possible python code to python 3.9 however I have as well separated patches with diffs dropping only python<=3.7 support. In future when you will decide to drop older syntax just remember that you can do that using --- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@
author_email="[email protected]",
url="https://github.com/pytest-dev/pytest-twisted",
py_modules=["pytest_twisted"],
- python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*',
+ python_requires='>=3.8',
install_requires=["greenlet", "pytest>=2.3", "decorator"],
extras_require={
"dev": ["pre-commit", "black"],
@@ -30,13 +30,11 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Testing",
- "Programming Language :: Python :: 2",
- "Programming Language :: Python :: 2.7",
- "Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.5",
- "Programming Language :: Python :: 3.6",
- "Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
+ "Programming Language :: Python :: 3.9",
+ "Programming Language :: Python :: 3.10",
+ "Programming Language :: Python :: 3.11",
+ "Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
Pleasure is on my side as well 👍 😄 |
Why do you need to actively remove the code when it also works up to 3.12? |
|
Right. I've used pyupgrade but I'm not sure what benefit you would get if I were to remove Python 2.7-3.7 support. Given that the code works on 2.7-3.12 |
FYI: I have already packaged +1.2k python modules as rpm packages. [tkloczko@pers-jacek SPECS]$ ls -1 python-*.spec |wc -l; grep -l ^%pytest python-*.spec |wc -l
1238
1220 In about 10% of all packages %pytest i temporary disabled because test suites are so trashed that pytest is not able to pass units scanning [tkloczko@pers-jacek SPECS]$ grep -l ^%bcond_wit.*check python-*.spec |wc -l
124 In about 1/4 only some units are disabled by adde them to --deselect list [tkloczko@pers-jacek SPECS]$ grep ^%bcond_wit.*failing_tests python-*.spec | wc -l
300 All those issues and many more are more or less alredy know to maintainers [tkloczko@pers-jacek SPECS]$ grep "# BUG: pytest.*https://" python-*.spec | wc -l
400 BTW all already reported python modules issues .. 😋 [tkloczko@pers-jacek SPECS]$ grep "# BUG:.*https://" python-*.spec | wc -l
934 Using that as platform I was able to prepare additional set of builds with installed additional Because I have all those pupgrade patches on rpm bcond which allows me easy produce results side by side with and without those patches and I've noticed that only occasionally in some handful cases it is some negative impact, (up to ~3%) and in really big number of cases some units are even 10% faster and in few cases even +20% faster. In most of the cases impast in neutral.
In other words: IMO that is enough often positive impact to go with such changes on 100% scale 😃 Now I'm in similar process of pushing all my packages to python +3.9 so as I've started that few days ago I've started pushing +3.8 changes as 3.8 has been EOSed Juna last year and I'm enough sure that all is stable (which is possible to see impact of that in my gh activity https://github.com/kloczek in recent days😋 ) Probably it will take me 3-4 weeks to finish review and testing all changes generated during two hours filtering all +4.8k packages. Only then I'll be able perform cumulative benchmarking but I'll be really surprised if that impact will be at least not as good as switching ALL python code to +3.8. |
Thanks for the explanation. That's interesting that you are able to get these improvements. |
BTW .. I think that you should have look as well on |
I may do that at some point. Right now I'm struggling through the 'drop in replacement' |
between all those tools some functionalities are overlapping but some not. |
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulesinstaller
modulecut off from access to the public network
(pytest is executed with-m "not network"
)Here is pytest output:
List of installed modules in build env:
Please let me know if you need more details or want me to perform some diagnostics.
The text was updated successfully, but these errors were encountered: