Fix more test failures on platforms with 32-bit time_t (#7222)
This commit is contained in:
parent
05d7b183ed
commit
7afd91fd23
@ -92,7 +92,10 @@ def test_list_certificates():
|
||||
issued_arn = _import_cert(client)
|
||||
pending_arn = client.request_certificate(DomainName="google.com")["CertificateArn"]
|
||||
|
||||
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:
|
||||
|
@ -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"
|
||||
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")
|
||||
|
Loading…
Reference in New Issue
Block a user