summaryrefslogtreecommitdiff
path: root/ptr.py
diff options
context:
space:
mode:
Diffstat (limited to 'ptr.py')
-rw-r--r--ptr.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ptr.py b/ptr.py
index 56a5c00..3de0129 100644
--- a/ptr.py
+++ b/ptr.py
@@ -192,9 +192,8 @@ class PyTest(orig.test):
don't install them anywhere).
"""
self._super_run()
- if self.result_code:
+ if getattr(self, 'result_code', None):
raise SystemExit(self.result_code)
- return self.result_code
@property
def _argv(self):