-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Tests for 2.3.1 fail with multidict 3.2.0 and 3.3.0 #2365
Comments
Just re-checked. |
In that case, I'd appreciate some help debugging - or at least understanding the problem! All of these tests are with aiohttp 2.3.1. With multidict 3.0.0:
With multidict 3.2.0:
With multidict 3.3.0:
Running the tests with
In other words: the output changes to I'm happy to believe that this is a problem on my system. Any suggestions on where I should look for the cause? Should I file this issue against multidict? Can GitHub issues be moved to another project? Thanks for your help. |
CIMultiDict has comparison operator that accepts a regular dict, so everything should be ok. What is your environment? Do you use Cythonized multidict or pure Python?
|
All of the tests I've quoted are on FreeBSD 11.1 on amd64 and I've run the tests with Poudriere as follows:
Poudriere fires up a jail with aiohttp and its dependencies installed. The port
I've confirmed that the Poudriere environment is not likely to be the culprit by running the tests directly with There are no local patches against either aiohttp or multidict (i.e.: they're the tarballs of the respective releases downloaded from GitHub). The versions of Python packages I have installed are:
I confirmed that the only difference between runs is the version of multidict by diffing the output of
Both multidict and aiohttp are built with cython and I don't use xdist. I will run my tests again without cython and report back. Thanks for the suggestion. I had not thought of cython. I can try with xdist as well, but that might be more work. The plugins used are Thanks again for your help. |
Just tried without cython: no change unfortunately. I suspect a subtle interaction between different versions of dependencies higher up, but I don't see any obvious suspects. I'll try with a git clone and virtualenv/pip and compare versions. Unless you have an "Aha! That might be it!" idea from the data above. :) |
I remember failed tests like you mentioned in migration from multidict 2.x to 3.0 but they was fixed by aiohttp 2.3.0 |
Yes. I saw those too. That's why I was surprised to see them again in multidict 3.2.0/3.3.0. Do you remember (or is there a record of) the specific tests that were failing in the multidict 2.x -> 3.0 transition? I'm not having any luck figuring out why they're failing on me. I'll keep digging! |
Thanks for the pointers. I'll read through those and see if I can find any inspiration. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Long story short
Running the tests for aiohttp 2.3.1 with multidict 3.2.0 or 3.3.0 causes five tests to fail with CIMultiDict AssertionErrors. The easiest workaround is probably to pin multidict to 3.0.0 in setup.py, but the tests should probably be fixed.
Expected behaviour
The tests should not fail. They do not fail with multidict 3.0.0.
Actual behaviour
5 failed, 1888 passed, 36 skipped, 5 xfailed, 77 error in 46.54 seconds
e.g.:
The other failures are variants on this theme.
Steps to reproduce
Run the tests for aiohttp 2.3.1 with multidict 3.0.0, 3.2.0 and 3.3.0. They will fail on 3.2.0 and 3.3.0.
Your environment
FreeBSD 10amd64, 11amd64 and 12amd64.
The text was updated successfully, but these errors were encountered: