You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when I tried to reproduce, it only broke the convenience import from websockets import StatusLike, which websockets doesn't use internally. After applying your patch, running python -m unittest discover from the root of the repository still fails for me, just with a different error.
I suspect real reason is that websockets isn't on PYTHONPATH, or that your PYTHONPATH is somehow not correct.
For the record, the test suite is designed exclusively for the purpose of developing websockets, not for the purpose of distro packaging toolchains. I wish that you didn't run it. That would save efforts and electricity :-) Based on past discussions with distro maintainers, I expect that you won't care about my wish.
If the tests were part of my deliverables, I'd include them in the releases on PyPI. They're not, and that's why they aren't included.
Please don't engage into an extended explanation of why you trust my ability to write code and tests but not my ability to run continuous integration; or why you want to run the unit tests but not the compliance tests. I've been lectured at length before and I'm at peace with the disagreement ;-)
If you're going to run tests anyway, ideally, do so with make tests or tox -e pyXY.
Trying to run unittest against 13.0.1 I got an
AttributeError
.I first stumble upon the issue trying to update the Debian package (python 3.12 in a chroot), but I reproduced with python 3.11 as well.
Here is what I got running
python -m unittest discover
(inside 13.0.1 extracted tar ball):Not sure I understand what is going on here, is there a typo in lazy importing?
The above patch is solving the issue.
The text was updated successfully, but these errors were encountered: