diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-09-15 16:55:16 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-09-15 21:54:32 +0200 |
commit | e337ff621e43666fc707600c7601d154dd799d08 (patch) | |
tree | 89478769ad51608bc2404fc582cadcea94f1e68e /tests/compat | |
parent | 218acc52cd4574df07536e1bc81bc1eb7a410573 (diff) | |
download | pyasn1-git-e337ff621e43666fc707600c7601d154dd799d08.tar.gz |
run unit tests with full debugging enabled (and ignored)
Also fixed a couple of crashes in debug messages
Diffstat (limited to 'tests/compat')
-rw-r--r-- | tests/compat/test_binary.py | 7 | ||||
-rw-r--r-- | tests/compat/test_integer.py | 7 | ||||
-rw-r--r-- | tests/compat/test_octets.py | 7 |
3 files changed, 15 insertions, 6 deletions
diff --git a/tests/compat/test_binary.py b/tests/compat/test_binary.py index 7660206..ce3d1ef 100644 --- a/tests/compat/test_binary.py +++ b/tests/compat/test_binary.py @@ -5,15 +5,18 @@ # License: http://pyasn1.sf.net/license.html # import sys -from pyasn1.compat import binary try: import unittest2 as unittest except ImportError: import unittest +from tests.base import BaseTestCase + +from pyasn1.compat import binary + -class BinaryTestCase(unittest.TestCase): +class BinaryTestCase(BaseTestCase): def test_bin_zero(self): assert '0b0' == binary.bin(0) diff --git a/tests/compat/test_integer.py b/tests/compat/test_integer.py index 9179641..22aadd9 100644 --- a/tests/compat/test_integer.py +++ b/tests/compat/test_integer.py @@ -5,15 +5,18 @@ # License: http://pyasn1.sf.net/license.html # import sys -from pyasn1.compat import integer try: import unittest2 as unittest except ImportError: import unittest +from tests.base import BaseTestCase + +from pyasn1.compat import integer + -class IntegerTestCase(unittest.TestCase): +class IntegerTestCase(BaseTestCase): if sys.version_info[0] > 2: diff --git a/tests/compat/test_octets.py b/tests/compat/test_octets.py index 4652b33..82382f7 100644 --- a/tests/compat/test_octets.py +++ b/tests/compat/test_octets.py @@ -5,15 +5,18 @@ # License: http://pyasn1.sf.net/license.html # import sys -from pyasn1.compat import octets try: import unittest2 as unittest except ImportError: import unittest +from tests.base import BaseTestCase + +from pyasn1.compat import octets + -class OctetsTestCase(unittest.TestCase): +class OctetsTestCase(BaseTestCase): if sys.version_info[0] > 2: |