-
-
Notifications
You must be signed in to change notification settings - Fork 953
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
Broken tests on 32-bit platforms: test_set_cookie
and test_expires_on_set_cookie
#2032
Comments
We just need to change the year? |
Yeah, that will do it. |
Would you like to open a PR? Since you can verify the date it will work on those OSs. |
Sure, let me do it. |
1 task
Closed by #2033 |
Isn't the test wrong anyway? Shouldn't I had to work around this limitation in my tests using something like this: from requests.models import Response
from starlette.testclient import TestClient
def collect_set_cookies(response: Response):
cookies = SimpleCookie()
cookies.load(response.headers["set-cookie"])
return {name: cookie.value for name, cookie in cookies.items()}
def test_set_cookies(client: TestClient):
response_A = client.post("/apiA")
jsonA = response.json()
cookies = collect_set_cookies(response)
responseB = client.post("/apiB", json=jsonA, cookies=cookies)
assert True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following test will never success in 32-bit platforms, as the date goes beyond the maximum value that
time_t
can hold, causing an overflow exception. I suggest to add a skip on these platforms for these tests or rework them to not to break.Broken tests:
We are skipping these tests in openSUSE as we build for
i586
andarmv7l
archs, but it would be nice to take them into account.Here is an excerpt of one of the errors:
The text was updated successfully, but these errors were encountered: