diff options
author | Ilya Etingof <etingof@gmail.com> | 2019-11-16 18:02:12 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2019-11-16 18:02:12 +0100 |
commit | 317452bd76d711c35a1bbdda54879606dd693268 (patch) | |
tree | 2d06cd815b392ca7f075d4c51b76451677a35742 /tests | |
parent | 8393983359edc25b75cbe07f0d4c13497285aa71 (diff) | |
download | pyasn1-git-317452bd76d711c35a1bbdda54879606dd693268.tar.gz |
Pass `tagMap` and `typeMap` to decoder instance
This change should simplify decoder specialization by means
of parameterization in addition to subclassing.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/codec/ber/test_decoder.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/codec/ber/test_decoder.py b/tests/codec/ber/test_decoder.py index a559209..17483db 100644 --- a/tests/codec/ber/test_decoder.py +++ b/tests/codec/ber/test_decoder.py @@ -1592,7 +1592,8 @@ class NonStringDecoderTestCase(BaseTestCase): class ErrorOnDecodingTestCase(BaseTestCase): def testErrorCondition(self): - decode = decoder.SingleItemDecoder(decoder.TAG_MAP, decoder.TYPE_MAP) + decode = decoder.SingleItemDecoder( + tagMap=decoder.TAG_MAP, typeMap=decoder.TYPE_MAP) substrate = ints2octs((00, 1, 2)) stream = streaming.asSeekableStream(substrate) |