aboutsummaryrefslogtreecommitdiff
path: root/tests/test_compat.py
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2019-08-04 15:02:20 +0200
committerSybren A. Stüvel <sybren@stuvel.eu>2019-08-04 17:05:58 +0200
commitded036cf988b0cf4b20002d88434282f30762638 (patch)
treed927a9732226093ffcdf7400808ae45f5b9e6c37 /tests/test_compat.py
parent65a81053d596c62ad2532c7e0e38e68ef61304bd (diff)
downloadrsa-ded036cf988b0cf4b20002d88434282f30762638.tar.gz
Removed compatibility code for Python 2.7 and 3.4
Diffstat (limited to 'tests/test_compat.py')
-rw-r--r--tests/test_compat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_compat.py b/tests/test_compat.py
index 62e933f..a047402 100644
--- a/tests/test_compat.py
+++ b/tests/test_compat.py
@@ -17,7 +17,7 @@
import unittest
import struct
-from rsa._compat import byte, is_bytes, range, xor_bytes
+from rsa._compat import byte, xor_bytes
class TestByte(unittest.TestCase):
@@ -26,7 +26,7 @@ class TestByte(unittest.TestCase):
def test_byte(self):
for i in range(256):
byt = byte(i)
- self.assertTrue(is_bytes(byt))
+ self.assertIsInstance(byt, bytes)
self.assertEqual(ord(byt), i)
def test_raises_StructError_on_overflow(self):