From 70c5052a9f07025c236033cf629506bb38eb6d97 Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Sun, 15 Nov 2015 07:48:20 +0000 Subject: ENH: testing: add SkipTest and KnownFailureException * use SkipTest in numpy tests instead of importing it from nose * add a KnownFailureException as an alias for KnownFailureTest (the former is preferred, but the latter is kept for backcompat) * rename the KnownFailure nose plugin into KnownFailurePlugin, and keep the old name for backcompat --- doc/release/1.11.0-notes.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/release/1.11.0-notes.rst b/doc/release/1.11.0-notes.rst index f8d3d4dbf..580c0c952 100644 --- a/doc/release/1.11.0-notes.rst +++ b/doc/release/1.11.0-notes.rst @@ -71,6 +71,10 @@ via ``python runtests.py --bench``. For more details, see ``benchmarks/README.rs arrays have memory overlap is added. ``np.may_share_memory`` also now has an option to spend more effort to reduce false positives. +* ``SkipTest`` and ``KnownFailureException`` exception classes are exposed in the +``numpy.testing`` namespace. Raise them in a test function to mark the test to +be skipped or mark it as a known failure, respectively. + Improvements ============ -- cgit v1.2.1