summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Carroll <jim@caroll.com>2016-07-28 15:30:28 -0400
committerMatěj Cepl <mcepl@cepl.eu>2017-09-19 16:16:21 +0200
commit24ffc7d2b64918a3d557a31ae0027d72b340f01e (patch)
tree3ee2a60866cca147e0d24cb419399a16e04c048c
parent81901b67c11ce8c7ef1f49e8e8e12a6f1dbc6303 (diff)
downloadm2crypto-24ffc7d2b64918a3d557a31ae0027d72b340f01e.tar.gz
Don't check the length of tests/der_encoded_seq.b64
It has different length on Windows (CRLF endings), so it is absolutely unnecessary test failure.
-rw-r--r--tests/test_x509.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py
index 1396781..7486408 100644
--- a/tests/test_x509.py
+++ b/tests/test_x509.py
@@ -582,7 +582,7 @@ class X509TestCase(unittest.TestCase):
class X509StackTestCase(unittest.TestCase):
def test_make_stack_from_der(self):
with open("tests/der_encoded_seq.b64", 'rb') as f:
- b64 = f.read(1304)
+ b64 = f.read()
with warnings.catch_warnings():
warnings.simplefilter('ignore', DeprecationWarning)
@@ -602,7 +602,7 @@ class X509StackTestCase(unittest.TestCase):
def test_make_stack_check_num(self):
with open("tests/der_encoded_seq.b64", 'rb') as f:
- b64 = f.read(1304)
+ b64 = f.read()
with warnings.catch_warnings():
warnings.simplefilter('ignore', DeprecationWarning)