aboutsummaryrefslogtreecommitdiff
path: root/tests/test_rfc3274.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2019-07-20 13:18:25 +0200
committerIlya Etingof <etingof@gmail.com>2019-07-20 13:18:25 +0200
commit63a107fb8a330c58c259f4afe89397124ae29ef8 (patch)
treeec9934d014126b50bfec907a820c5875370bb843 /tests/test_rfc3274.py
parentb5eb18384659ef1da9f72158626c6779c1214679 (diff)
downloadpyasn1-modules-63a107fb8a330c58c259f4afe89397124ae29ef8.tar.gz
Unit tests runner returns proper error status to OS
Diffstat (limited to 'tests/test_rfc3274.py')
-rw-r--r--tests/test_rfc3274.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_rfc3274.py b/tests/test_rfc3274.py
index 516884a..a8137fd 100644
--- a/tests/test_rfc3274.py
+++ b/tests/test_rfc3274.py
@@ -71,7 +71,11 @@ XQ7u2qbaKFtZ7V96NH8ApkUFkg==
assert cd['compressionAlgorithm']['algorithm'] == rfc3274.id_alg_zlibCompress
assert cd['encapContentInfo']['eContentType'] == rfc5652.id_data
+
suite = unittest.TestLoader().loadTestsFromModule(sys.modules[__name__])
if __name__ == '__main__':
- unittest.TextTestRunner(verbosity=2).run(suite)
+ import sys
+
+ result = unittest.TextTestRunner(verbosity=2).run(suite)
+ sys.exit(not result.wasSuccessful())