From ac1d13f43dea5ebee0506dc229cd431660916c73 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 19 Feb 2019 23:38:32 -0500 Subject: Simplify string formatting (#4757) --- tests/hazmat/primitives/test_ec.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/hazmat/primitives/test_ec.py') diff --git a/tests/hazmat/primitives/test_ec.py b/tests/hazmat/primitives/test_ec.py index 7a6d6aff..1f3a67d3 100644 --- a/tests/hazmat/primitives/test_ec.py +++ b/tests/hazmat/primitives/test_ec.py @@ -45,7 +45,7 @@ def _skip_ecdsa_vector(backend, curve_type, hash_type): curve_type() ): pytest.skip( - "ECDSA not supported with this hash {0} and curve {1}".format( + "ECDSA not supported with this hash {} and curve {}".format( hash_type().name, curve_type().name ) ) @@ -54,7 +54,7 @@ def _skip_ecdsa_vector(backend, curve_type, hash_type): def _skip_curve_unsupported(backend, curve): if not backend.elliptic_curve_supported(curve): pytest.skip( - "Curve {0} is not supported by this backend {1}".format( + "Curve {} is not supported by this backend {}".format( curve.name, backend ) ) @@ -65,7 +65,7 @@ def _skip_exchange_algorithm_unsupported(backend, algorithm, curve): algorithm, curve ): pytest.skip( - "Exchange with {0} curve is not supported by {1}".format( + "Exchange with {} curve is not supported by {}".format( curve.name, backend ) ) -- cgit v1.2.3