diff options
author | Jan Pipek <jan.pipek@gmail.com> | 2019-09-10 17:27:55 +0200 |
---|---|---|
committer | Jan Pipek <jan.pipek@gmail.com> | 2019-09-10 17:36:22 +0200 |
commit | e27f97182e859fc6048ff13b028961da578dc340 (patch) | |
tree | 8c1e509ca01da2fa3c6c96b06a2cddb6e30ae0c6 /tests/codec/ber/test_decoder.py | |
parent | 043d97d7ecd01da7c5ac43a0e87565ba0f3bd35b (diff) | |
download | pyasn1-git-e27f97182e859fc6048ff13b028961da578dc340.tar.gz |
Implement _CachedStreamWrapper
Diffstat (limited to 'tests/codec/ber/test_decoder.py')
-rw-r--r-- | tests/codec/ber/test_decoder.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/codec/ber/test_decoder.py b/tests/codec/ber/test_decoder.py index 0686c6d..141f7c7 100644 --- a/tests/codec/ber/test_decoder.py +++ b/tests/codec/ber/test_decoder.py @@ -1715,12 +1715,8 @@ class CompressedFilesTestCase(BaseTestCase): with zipfile.ZipFile(path, "r") as myzip: with myzip.open("data", "r") as source: - if sys.version_info < (3,): - with self.assertRaises(UnsupportedSubstrateError): - _ = list(decoder.decodeStream(source)) - else: - values = list(decoder.decodeStream(source)) - assert values == [12, (1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1)] + values = list(decoder.decodeStream(source)) + assert values == [12, (1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1)] finally: os.remove(path) |