diff --git a/tests/test_asn1_convert.py b/tests/test_asn1_convert.py index 3e1ca0fef4..ab795cbad1 100644 --- a/tests/test_asn1_convert.py +++ b/tests/test_asn1_convert.py @@ -33,12 +33,6 @@ # Dependency Imports import asn1crypto as asn1 import asn1crypto.core as asn1_core -''' -import pyasn1 -import pyasn1.type.univ as pyasn1_univ -import pyasn1.type.char as pyasn1_char -import pyasn1.codec.der.encoder as pyasn1_der_encoder -''' # TUF Imports import tuf import tuf.log diff --git a/tuf/encoding/asn1_convert.py b/tuf/encoding/asn1_convert.py index 35552befd9..c3c6f09b42 100644 --- a/tuf/encoding/asn1_convert.py +++ b/tuf/encoding/asn1_convert.py @@ -656,8 +656,8 @@ def _structlike_dict_to_asn1(data, datatype): continue else: raise tuf.exceptions.ASN1ConversionError( - 'In conversion to "' + str(datatype) + '", expected to find key ' + - element_name_py + ' in input data, but did not. Keys in input ' + 'In conversion to "' + str(datatype) + '", expected to find key "' + + element_name_py + '" in input data, but did not. Keys in input ' 'data: ' + str(data.keys())) debug('In conversion of dict to type ' + str(datatype) + ', recursing '