diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2016-09-10 14:39:32 -0400 |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2016-09-10 20:39:32 +0200 |
commit | 2310f8be403b146d0c57e5d0f551485d72d305f4 (patch) | |
tree | 50d7e0b983e7a9f815c857be4017cbe84c8ebada | |
parent | 0737a5e4e2dbd2328dd91fc7efd40eafb662c0e4 (diff) | |
download | pyopenssl-2310f8be403b146d0c57e5d0f551485d72d305f4.tar.gz |
make these tests pass if OP_NO_SSLv2 is 0 (#532)
-rw-r--r-- | tests/test_ssl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_ssl.py b/tests/test_ssl.py index b52f73b..877edcb 100644 --- a/tests/test_ssl.py +++ b/tests/test_ssl.py @@ -777,7 +777,7 @@ class ContextTests(TestCase, _LoopbackMixin): """ context = Context(TLSv1_METHOD) options = context.set_options(OP_NO_SSLv2) - self.assertTrue(OP_NO_SSLv2 & options) + assert options & OP_NO_SSLv2 == OP_NO_SSLv2 @skip_if_py3 def test_set_options_long(self): @@ -787,7 +787,7 @@ class ContextTests(TestCase, _LoopbackMixin): """ context = Context(TLSv1_METHOD) options = context.set_options(long(OP_NO_SSLv2)) - self.assertTrue(OP_NO_SSLv2 & options) + assert options & OP_NO_SSLv2 == OP_NO_SSLv2 def test_set_mode_wrong_args(self): """ |