`_ssl`


On Thu, Jan 23, 2014 at 1:22 PM, David Reid <notifications@github.com>wrote:

> In tests/hazmat/bindings/test_openssl.py:
>
> > @@ -23,3 +28,105 @@ def test_binding_loads(self):
> >
> >      def test_is_available(self):
> >          assert Binding.is_available() is True
> > +
> > +    def test_crypto_lock_init(self):
> > +        b = Binding()
> > +        b.init_static_locks()
> > +        lock_cb = b.lib.CRYPTO_get_locking_
> callback()
> > +        assert lock_cb != b.ffi.NULL
> > +
> > +    def test_our_crypto_lock(self, capfd):
> > +        b = Binding()
> > +        b.init_static_locks()
> > +
> > +        # only run this test if we are using our locking cb
> > +        original_cb = b.lib.CRYPTO_get_locking_callback()
> > +        if original_cb != b._lock_cb_handle:
> > +            pytest.skip("Not using Python locking callback implementation")
>
> So this will skip if our locking callback isn't set… what do you expect
> would be setting an alternative locking callback while running the tests?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pyca/cryptography/pull/492/files#r9125449>
> .
>



-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: 125F 5C67 DFE9 4084