This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients Arfrever, amaury.forgeotdarc, brett.cannon, dmalcolm, georg.brandl, gvanrossum, pitrou, r.david.murray
Date 2012-07-07.21:15:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1341695712.97.0.076889392944.issue15110@psf.upfronthosting.co.za>
In-reply-to
Content
I added to _ssl.c:

    PyErr_SetString(PyExc_ValueError, "Just a test");
    return NULL;

Then I tried to import the module:

~/python/cpython3.x$ ./python -c "import ssl"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/amauryfa/python/cpython3.x/Lib/ssl.py", line 60, in <module>
    import _ssl             # if we can't import it, let the error propagate
  File "<frozen importlib._bootstrap>", line 1300, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1267, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 432, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 347, in set_package_wrapper
  File "<frozen importlib._bootstrap>", line 360, in set_loader_wrapper
  File "<frozen importlib._bootstrap>", line 878, in load_module
ValueError: Just a test
History
Date User Action Args
2012-07-07 21:15:13amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, gvanrossum, brett.cannon, georg.brandl, pitrou, Arfrever, r.david.murray, dmalcolm
2012-07-07 21:15:12amaury.forgeotdarcsetmessageid: <1341695712.97.0.076889392944.issue15110@psf.upfronthosting.co.za>
2012-07-07 21:15:12amaury.forgeotdarclinkissue15110 messages
2012-07-07 21:15:12amaury.forgeotdarccreate