summaryrefslogtreecommitdiff
path: root/_pytest/compat.py
diff options
context:
space:
mode:
authorLuke Murphy <lukewm@riseup.net>2016-11-30 12:17:51 +0100
committerLuke Murphy <lukewm@riseup.net>2016-11-30 17:05:42 +0100
commitf5afd8cb541549aaf595dbd7ea730becf23e3ee3 (patch)
tree02846bfcda3a3f5a9757041b95078c1003fc8402 /_pytest/compat.py
parent36eb5b36d1c4b29ac217b1faddef16336843b3a5 (diff)
downloadpytest-f5afd8cb541549aaf595dbd7ea730becf23e3ee3.tar.gz
Add missing `__test__` check for test discovery.
Diffstat (limited to '_pytest/compat.py')
-rw-r--r--_pytest/compat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/_pytest/compat.py b/_pytest/compat.py
index d5fa7aa84..6bed9e92a 100644
--- a/_pytest/compat.py
+++ b/_pytest/compat.py
@@ -200,7 +200,7 @@ def safe_getattr(object, name, default):
""" Like getattr but return default upon any Exception.
Attribute access can potentially fail for 'evil' Python objects.
- See issue214
+ See issue #214.
"""
try:
return getattr(object, name, default)