summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rivera <rivera@joel.mx>2016-03-10 00:32:25 -0600
committerJoel Rivera <rivera@joel.mx>2016-03-10 00:32:25 -0600
commitbe7807d9229edaedde0eae18707694dcecf9965b (patch)
tree622bbf6e843be82b7225ab4faacea821ec9c1584
parent12bdd60a936815333c32bc19f9c40930de1ea14f (diff)
downloadcherrypy-be7807d9229edaedde0eae18707694dcecf9965b.tar.gz
Substitute the `issubclass` function to `isinstance` to avoid the use of magical properties
-rw-r--r--cherrypy/test/webtest.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cherrypy/test/webtest.py b/cherrypy/test/webtest.py
index c9aeb71d..959063f5 100644
--- a/cherrypy/test/webtest.py
+++ b/cherrypy/test/webtest.py
@@ -545,8 +545,7 @@ def openURL(url, headers=None, method="GET", body=None,
return s, h, b
except socket.error as e:
- if (raise_subcls is not None and
- issubclass(e.__class__, raise_subcls)):
+ if raise_subcls is not None and isinstance(e, raise_subcls):
raise
else:
time.sleep(0.5)