[pypy-commit] pypy py3k: test 979b3dd2b1a5 for ValueErrors
pjenvey
noreply at buildbot.pypy.org
Mon Mar 18 08:46:23 CET 2013
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r62397:383f13f771fe
Date: 2013-03-18 00:45 -0700
http://bitbucket.org/pypy/pypy/changeset/383f13f771fe/
Log: test 979b3dd2b1a5 for ValueErrors
diff --git a/pypy/module/_ssl/test/test_ssl.py b/pypy/module/_ssl/test/test_ssl.py
--- a/pypy/module/_ssl/test/test_ssl.py
+++ b/pypy/module/_ssl/test/test_ssl.py
@@ -199,6 +199,11 @@
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-----
More information about the pypy-commit
mailing list