summaryrefslogtreecommitdiff
path: root/tests/codec/cer/test_encoder.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2019-11-23 10:06:57 +0100
committerGitHub <noreply@github.com>2019-11-23 10:06:57 +0100
commit96b0a7742a243dbcdacdcdcc64e141437a40835a (patch)
tree3a085a20e202c339d60cf4cf68b867e2b532e13f /tests/codec/cer/test_encoder.py
parentf10434e31f9293c4e739ac6c5d1519f407bd1540 (diff)
parentcda318a63f8d6a3c43408ac8d3dfa405d3ca7c7c (diff)
downloadpyasn1-git-96b0a7742a243dbcdacdcdcc64e141437a40835a.tar.gz
Make BER/CER/DER decodersstreaming and suspendible (#176)
The goal of this change is to make the decoder yielding on input data starvation and resuming from where it stopped whenever the caller decides to try again (hopefully making sure that some more input becomes available). This change makes it possible for the decoder to operate on streams of data (meaning that the entire DER blob might not be immediately available on input). On top of that, the decoder yields partially reconstructed ASN.1 object on input starvation making it possible for the caller to inspect what has been decoded so far and possibly consume partial ASN.1 data. All these new feature are natively available through `StreamingDecoder` class. Previously published API is implemented as a thin wrapper on top of that ensuring backward compatibility.
Diffstat (limited to 'tests/codec/cer/test_encoder.py')
-rw-r--r--tests/codec/cer/test_encoder.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/codec/cer/test_encoder.py b/tests/codec/cer/test_encoder.py
index 9e003a7..4535927 100644
--- a/tests/codec/cer/test_encoder.py
+++ b/tests/codec/cer/test_encoder.py
@@ -80,7 +80,6 @@ class GeneralizedTimeEncoderTestCase(BaseTestCase):
else:
assert 0, 'Missing timezone tolerated'
-
def testDecimalCommaPoint(self):
try:
assert encoder.encode(