From 3f6b99c9f74a0a7bfa2e18f0a7bc7057739cc00b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 24 Jan 2024 22:45:43 +0000 Subject: gentoo auto-resync : 24:01:2024 - 22:45:43 --- dev-python/moto/files/moto-4.2.12-32bit-time.patch | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 dev-python/moto/files/moto-4.2.12-32bit-time.patch (limited to 'dev-python/moto/files') diff --git a/dev-python/moto/files/moto-4.2.12-32bit-time.patch b/dev-python/moto/files/moto-4.2.12-32bit-time.patch new file mode 100644 index 000000000000..fc9470c1ecab --- /dev/null +++ b/dev-python/moto/files/moto-4.2.12-32bit-time.patch @@ -0,0 +1,46 @@ +From 7afd91fd23ad73550fcc621422e04a3734dc890d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= +Date: Thu, 18 Jan 2024 13:32:07 +0100 +Subject: [PATCH] Fix more test failures on platforms with 32-bit time_t + (#7222) + +--- + tests/test_acm/test_acm.py | 5 ++++- + tests/test_sagemaker/test_sagemaker_pipeline.py | 5 ++++- + 2 files changed, 8 insertions(+), 2 deletions(-) + +diff --git a/tests/test_acm/test_acm.py b/tests/test_acm/test_acm.py +index d0c46d20c..d2943d801 100644 +--- a/tests/test_acm/test_acm.py ++++ b/tests/test_acm/test_acm.py +@@ -92,7 +92,10 @@ def test_list_certificates(): + issued_arn = _import_cert(client) + pending_arn = client.request_certificate(DomainName="google.com")["CertificateArn"] + +- certs = client.list_certificates()["CertificateSummaryList"] ++ try: ++ certs = client.list_certificates()["CertificateSummaryList"] ++ except OverflowError: ++ pytest.skip("This test requires 64-bit time_t") + assert issued_arn in [c["CertificateArn"] for c in certs] + assert pending_arn in [c["CertificateArn"] for c in certs] + for cert in certs: +diff --git a/tests/test_sagemaker/test_sagemaker_pipeline.py b/tests/test_sagemaker/test_sagemaker_pipeline.py +index 8323eb29b..31443b26b 100644 +--- a/tests/test_sagemaker/test_sagemaker_pipeline.py ++++ b/tests/test_sagemaker/test_sagemaker_pipeline.py +@@ -515,7 +515,10 @@ def test_list_pipelines_created_after(sagemaker_client): + _ = create_sagemaker_pipelines(sagemaker_client, pipelines) + + created_after_str = "2099-12-31 23:59:59" +- response = sagemaker_client.list_pipelines(CreatedAfter=created_after_str) ++ try: ++ response = sagemaker_client.list_pipelines(CreatedAfter=created_after_str) ++ except OverflowError: ++ pytest.skip("This test requires 64-bit time_t") + assert not response["PipelineSummaries"] + + created_after_datetime = datetime.strptime(created_after_str, "%Y-%m-%d %H:%M:%S") +-- +2.43.0 + -- cgit v1.2.3