summaryrefslogtreecommitdiff
path: root/tests/type/test_char.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2019-11-23 09:57:24 +0100
committerGitHub <noreply@github.com>2019-11-23 09:57:24 +0100
commit2b646e07d5d83f0892fa2a809ae4c981430cb12c (patch)
tree20b10450bced84c425ca0735b4ee7202e68ee1ec /tests/type/test_char.py
parent788af3c44edc2ebd079eda3f7a4ae2f9931446fd (diff)
parentf10434e31f9293c4e739ac6c5d1519f407bd1540 (diff)
downloadpyasn1-git-2b646e07d5d83f0892fa2a809ae4c981430cb12c.tar.gz
Merge branch 'master' into streamoptimum37
Diffstat (limited to 'tests/type/test_char.py')
-rw-r--r--tests/type/test_char.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/type/test_char.py b/tests/type/test_char.py
index 8540a3e..e2fac73 100644
--- a/tests/type/test_char.py
+++ b/tests/type/test_char.py
@@ -6,12 +6,7 @@
#
import pickle
import sys
-
-try:
- import unittest2 as unittest
-
-except ImportError:
- import unittest
+import unittest
from tests.base import BaseTestCase
@@ -111,9 +106,8 @@ class AbstractStringTestCase(object):
assert self.pythonString in self.asn1String
assert self.pythonString + self.pythonString not in self.asn1String
- if sys.version_info[:2] > (2, 4):
- def testReverse(self):
- assert list(reversed(self.asn1String)) == list(reversed(self.pythonString))
+ def testReverse(self):
+ assert list(reversed(self.asn1String)) == list(reversed(self.pythonString))
def testSchemaPickling(self):
old_asn1 = self.asn1Type()