From cdb8fa1abe16a4fa380b5d3fc129a6e9a8c0aaf2 Mon Sep 17 00:00:00 2001 From: hpk Date: Sun, 21 Sep 2008 10:17:11 +0200 Subject: [PATCH] [svn r58288] update TODOs, docstring --HG-- branch : trunk --- contrib/py_unittest/conftest.py | 6 +++--- py/doc/TODO.txt | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/contrib/py_unittest/conftest.py b/contrib/py_unittest/conftest.py index 7892e1a4a..38cd73072 100644 --- a/contrib/py_unittest/conftest.py +++ b/contrib/py_unittest/conftest.py @@ -1,5 +1,5 @@ """ -collect and run traditional "unittest.py" style tests. +automatically collect and run traditional "unittest.py" style tests. drop this conftest.py into your project directory so that all testing directories are below it. @@ -11,13 +11,13 @@ user-extensions such as a custom test_suite() will not be considered (see XXX). $HeadURL: https://codespeak.net/svn/py/trunk/contrib/py_unittest/conftest.py $ -$Id: conftest.py 58286 2008-09-21 07:18:39Z hpk $ +$Id: conftest.py 58288 2008-09-21 08:17:11Z hpk $ """ import py import unittest import sys -__version__ = "$Rev: 58286 $".split()[1] +__version__ = "$Rev: 58288 $".split()[1] def configproperty(name): def fget(self): diff --git a/py/doc/TODO.txt b/py/doc/TODO.txt index b521ca843..e68b1cffe 100644 --- a/py/doc/TODO.txt +++ b/py/doc/TODO.txt @@ -4,8 +4,6 @@ Things to do for 1.0.0 py.test -------------- -- simplify collect API - - get APIGEN back to work - get web reporter back to work @@ -14,6 +12,18 @@ py.test as to mark a test as "expected to fail", report specially if it surprisingly passes +- introduce extended skipping, for example: + + py.test.skip(ifexecerror=''' + import docutils + assert docutils.__version__.startswith("0.4") + ''') + +- introduce setuptools-style version checking, at least + for py lib itself, maybe also for other packages: + + py.checkversion("py>=1.0") + - nightly test runs on multiple platforms - review and refactor architecture of py.test with particular