summaryrefslogtreecommitdiff
path: root/tests/test_common.py
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2022-03-13 12:39:20 +0100
committerSybren A. Stüvel <sybren@stuvel.eu>2022-03-13 12:39:20 +0100
commita925a9d5e57fad4647f1169229fb0789a1700f59 (patch)
tree025dce2a4516bacd06111b905401be7864ba9997 /tests/test_common.py
parent3031bf5c6ae64083431e849903b0104d2cfae893 (diff)
downloadrsa-git-a925a9d5e57fad4647f1169229fb0789a1700f59.tar.gz
Fix #133: Remove rsa/_compat.py
There were very few functions in there, and none of them were actually used by the RSA library (just by the test code).
Diffstat (limited to 'tests/test_common.py')
-rw-r--r--tests/test_common.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/test_common.py b/tests/test_common.py
index ac56bcd..c6a60d5 100644
--- a/tests/test_common.py
+++ b/tests/test_common.py
@@ -15,20 +15,9 @@
import unittest
import struct
-from rsa._compat import byte
from rsa.common import byte_size, bit_size, inverse
-class TestByte(unittest.TestCase):
- def test_values(self):
- self.assertEqual(byte(0), b"\x00")
- self.assertEqual(byte(255), b"\xff")
-
- def test_struct_error_when_out_of_bounds(self):
- self.assertRaises(struct.error, byte, 256)
- self.assertRaises(struct.error, byte, -1)
-
-
class TestByteSize(unittest.TestCase):
def test_values(self):
self.assertEqual(byte_size(1 << 1023), 128)