summaryrefslogtreecommitdiff
path: root/tests/basics/class_descriptor.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-12-12 01:20:11 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-12-12 23:45:48 +0200
commitda34b6ef452514170e8ce1d1819070a920c2568e (patch)
tree819765b52a1769c4abda4bbbba98ee96428246af /tests/basics/class_descriptor.py
parente4e3f0d7270e93e6123dbf05e1f51993e38d970c (diff)
tests: Fix few test for proper "skipped" detection with qemu-arm's tinytest.
"Builtin" tinytest-based testsuite as employed by qemu-arm (and now generalized by me to be reusable for other targets) performs simplified detection of skipped tests, it treats as such tests which raised SystemExit (instead of checking got "SKIP" output). Consequently, each "SKIP" must be accompanied by SystemExit (and conversely, SystemExit should not be used if test is not skipped, which so far seems to be true).
Diffstat (limited to 'tests/basics/class_descriptor.py')
-rw-r--r--tests/basics/class_descriptor.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/basics/class_descriptor.py b/tests/basics/class_descriptor.py
index eb88ba7b9..54f386230 100644
--- a/tests/basics/class_descriptor.py
+++ b/tests/basics/class_descriptor.py
@@ -27,8 +27,8 @@ except AttributeError:
r = m.Forward
if 'Descriptor' in repr(r.__class__):
print('SKIP')
-else:
- print(r)
- m.Forward = 'a'
- del m.Forward
+ raise SystemExit
+print(r)
+m.Forward = 'a'
+del m.Forward