Author: Amaury Forgeot d'Arc <amaur...@gmail.com>
Branch: py3k
Changeset: r57870:0f2251687b05
Date: 2012-10-07 10:59 +0200
http://bitbucket.org/pypy/pypy/changeset/0f2251687b05/

Log:    Fix exception type, a test relies on it.

diff --git a/pypy/module/_ssl/interp_ssl.py b/pypy/module/_ssl/interp_ssl.py
--- a/pypy/module/_ssl/interp_ssl.py
+++ b/pypy/module/_ssl/interp_ssl.py
@@ -219,7 +219,7 @@
         else:
             capath = space.str_w(w_capath)
         if cafile is None and capath is None:
-            raise OperationError(space.w_ValueError, space.wrap(
+            raise OperationError(space.w_TypeError, space.wrap(
                     "cafile and capath cannot be both omitted"))
         ret = libssl_SSL_CTX_load_verify_locations(
             self.ctx, cafile, capath)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to