From a5ae68669d8f809ad9f2be3b88d83a8b7a1b49ad Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Sat, 4 Feb 2023 10:51:49 +0100 Subject: [PATCH] Make tests pass after 2039 Background: As part of my work on reproducible builds for openSUSE, I check that software still gives identical build results in the future. The usual offset is +16 years, because that is how long I expect some software will be used in some places. This showed up failing tests in our package build. See https://reproducible-builds.org/ for why this matters. --- CHANGES/7191.misc | 1 + tests/test_cookiejar.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 CHANGES/7191.misc diff --git a/CHANGES/7191.misc b/CHANGES/7191.misc new file mode 100644 index 00000000000..55ac9ef9112 --- /dev/null +++ b/CHANGES/7191.misc @@ -0,0 +1 @@ +Made tests pass after the year 2039. diff --git a/tests/test_cookiejar.py b/tests/test_cookiejar.py index 7b5c91851ae..cd1d12a0904 100644 --- a/tests/test_cookiejar.py +++ b/tests/test_cookiejar.py @@ -31,7 +31,7 @@ def cookies_to_send(): "path3-cookie=eleventh; Domain=pathtest.com; Path=/one/two; " "path4-cookie=twelfth; Domain=pathtest.com; Path=/one/two/; " "expires-cookie=thirteenth; Domain=expirestest.com; Path=/;" - " Expires=Tue, 1 Jan 2039 12:00:00 GMT; " + " Expires=Tue, 1 Jan 2999 12:00:00 GMT; " "max-age-cookie=fourteenth; Domain=maxagetest.com; Path=/;" " Max-Age=60; " "invalid-max-age-cookie=fifteenth; Domain=invalid-values.com; "