Commits

Philip Jenvey committed 383f13f

test 979b3dd2b1a5 for ValueErrors

Comments (0)

Files changed (1)

pypy/module/_ssl/test/test_ssl.py

         ctx.load_verify_locations(self.keycert)
         ctx.load_verify_locations(cafile=self.keycert, capath=None)
 
+    def test_constructor(self):
+        import _ssl
+        raises(ValueError, _ssl._SSLContext, -1)
+        raises(ValueError, _ssl._SSLContext, 42)
+
 
 SSL_CERTIFICATE = """
 -----BEGIN CERTIFICATE-----