diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-07-11 02:14:43 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-07-11 02:14:43 +0200 |
commit | 2e5bbe62012c593d606c71e02131c8b7d0eeb2dd (patch) | |
tree | cbb11ae0a539cfbb903942de409ba0b3e9afd537 /tests/compat | |
parent | 186ed2d39ef3f5d3a0aad1c92bfbb7044c94bc63 (diff) | |
download | pyasn1-git-2e5bbe62012c593d606c71e02131c8b7d0eeb2dd.tar.gz |
fixed from_bytes() behaviour on empty input
Diffstat (limited to 'tests/compat')
-rw-r--r-- | tests/compat/test_integer.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/compat/test_integer.py b/tests/compat/test_integer.py index 005abb6..9179641 100644 --- a/tests/compat/test_integer.py +++ b/tests/compat/test_integer.py @@ -40,9 +40,8 @@ class IntegerTestCase(unittest.TestCase): def test_from_bytes_signed(self): assert 66051 == integer.from_bytes('\x01\x02\x03', signed=False) -# TODO: fix from_bytes() -# def test_from_bytes_empty(self): -# assert 0 == integer.from_bytes('') + def test_from_bytes_empty(self): + assert 0 == integer.from_bytes('') suite = unittest.TestLoader().loadTestsFromModule(sys.modules[__name__]) |