cpython: 46b34706eb41 (original) (raw)

Mercurial > cpython

changeset 103300:46b34706eb41

Issue 26798: fetch OSError and HTTPException like other tests that use open_urlresource.

Christian Heimes christian@python.org
date Thu, 08 Sep 2016 10:53:40 +0200
parents 368e0cfa5691
children b5b2bb56d303
files Lib/test/test_hashlib.py
diffstat 1 files changed, 8 insertions(+), 2 deletions(-)[+] [-] Lib/test/test_hashlib.py 10

line wrap: on

line diff

--- a/Lib/test/test_hashlib.py +++ b/Lib/test/test_hashlib.py @@ -20,6 +20,7 @@ import unittest import warnings from test import support from test.support import _4G, bigmemtest, import_fresh_module +from http.client import HTTPException

Were we compiled --with-pydebug or with #define Py_DEBUG?

COMPILED_WITH_PYDEBUG = hasattr(sys, 'gettotalrefcount') @@ -54,8 +55,13 @@ def hexstr(s): URL = "http://www.pythontest.net/hashlib/{}.txt"[](#l1.12) def read_vectors(hash_name):