summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-07-31 08:52:36 -0400
committerHynek Schlawack <hs@ox.cx>2016-07-31 14:52:36 +0200
commitc421fc4e5f4b3b2e3cdddd8281ee6f4b68cb4e2e (patch)
tree2dc645039fc1370d8ab82f4185c55b7982a70f93
parent17f47bba12d276a1a60829a2300cf9bf302e5882 (diff)
downloadpyopenssl-c421fc4e5f4b3b2e3cdddd8281ee6f4b68cb4e2e.tar.gz
Clean out some cruft (#509)
-rw-r--r--tests/test_crypto.py5
-rw-r--r--tests/test_ssl.py5
2 files changed, 0 insertions, 10 deletions
diff --git a/tests/test_crypto.py b/tests/test_crypto.py
index 0f1c867..222b9ca 100644
--- a/tests/test_crypto.py
+++ b/tests/test_crypto.py
@@ -5,7 +5,6 @@
Unit tests for :py:mod:`OpenSSL.crypto`.
"""
-from unittest import main
from warnings import catch_warnings, simplefilter
import base64
@@ -3995,7 +3994,3 @@ class EllipticCurveHashTests(TestCase):
get_elliptic_curve(self.curve_factory.another_curve_name)
])
self.assertNotIn(curve, curves)
-
-
-if __name__ == '__main__':
- main()
diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index b1592af..b0be12b 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -14,7 +14,6 @@ from sys import platform, getfilesystemencoding, version_info
from socket import MSG_PEEK, SHUT_RDWR, error, socket
from os import makedirs
from os.path import join
-from unittest import main
from weakref import ref
from warnings import catch_warnings, simplefilter
@@ -3895,7 +3894,3 @@ class TestRequires(object):
assert "Error text" in str(e.value)
assert results == []
-
-
-if __name__ == '__main__':
- main()