From b345e08f5d02ec31687d090c1e61820476925c60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 8 Apr 2023 17:38:38 +0200 Subject: [PATCH] python310Packages.bottle: disable timing sensitive test ____________________________ TestSendFile.test_ims _____________________________ self = def test_ims(self): """ SendFile: If-Modified-Since""" request.environ['HTTP_IF_MODIFIED_SINCE'] = time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime()) res = static_file(basename, root=root) self.assertEqual(304, res.status_code) self.assertEqual(int(os.stat(__file__).st_mtime), parse_date(res.headers['Last-Modified'])) > self.assertAlmostEqual(int(time.time()), parse_date(res.headers['Date'])) E AssertionError: 1680561734 != 1680561733.0 within 7 places (1.0 difference) test_sendfile.py:78: AssertionError --- pkgs/development/python-modules/bottle/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/bottle/default.nix b/pkgs/development/python-modules/bottle/default.nix index 3d12ba7e3ae3..7a97b9990230 100644 --- a/pkgs/development/python-modules/bottle/default.nix +++ b/pkgs/development/python-modules/bottle/default.nix @@ -27,6 +27,8 @@ buildPythonPackage rec { "test_delete_cookie" "test_error" "test_error_in_generator_callback" + # timing sensitive + "test_ims" ]; __darwinAllowLocalNetworking = true;