summaryrefslogtreecommitdiff
path: root/tests/test_debug.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-09-15 16:55:16 +0200
committerIlya Etingof <etingof@gmail.com>2017-09-15 21:54:32 +0200
commite337ff621e43666fc707600c7601d154dd799d08 (patch)
tree89478769ad51608bc2404fc582cadcea94f1e68e /tests/test_debug.py
parent218acc52cd4574df07536e1bc81bc1eb7a410573 (diff)
downloadpyasn1-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/test_debug.py')
-rw-r--r--tests/test_debug.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_debug.py b/tests/test_debug.py
index 742f7f1..e4616bb 100644
--- a/tests/test_debug.py
+++ b/tests/test_debug.py
@@ -5,16 +5,21 @@
# License: http://pyasn1.sf.net/license.html
#
import sys
+
try:
import unittest2 as unittest
+
except ImportError:
import unittest
+from tests.base import BaseTestCase
+
from pyasn1 import debug
from pyasn1 import error
-class DebugCaseBase(unittest.TestCase):
+class DebugCaseBase(BaseTestCase):
def testKnownFlags(self):
+ debug.setLogger(0)
debug.setLogger(debug.Debug('all', 'encoder', 'decoder'))
debug.setLogger(0)