From 984bf51c327831a5c5a6807523be03ae56d8482a Mon Sep 17 00:00:00 2001 From: Jason Pellerin Date: Tue, 24 Apr 2007 04:27:31 +0000 Subject: [PATCH] MERGE trunk r10:r196 into 0.10-dev branch: some tests now fail --- CHANGELOG | 51 +- MANIFEST.in | 3 +- NEWS | 27 +- README.txt | 2 +- index.html.tpl | 46 +- nose/__init__.py | 156 +- nose/commands.py | 1 - nose/core.py | 25 +- nose/importer.py | 2 + nose/loader.py | 2 + nose/plugins/__init__.py | 80 +- nose/plugins/attrib.py | 31 +- nose/plugins/base.py | 16 +- nose/plugins/cover.py | 1 + nose/plugins/doctests.py | 39 +- nose/plugins/prof.py | 30 +- nose/proxy.py | 88 - nose/selector.py | 5 +- nose/suite.py | 8 +- nose/tools.py | 26 +- nosetests.1 | 247 + scripts/mkindex.py | 6 +- scripts/mkrelease.py | 19 +- scripts/mkwiki.py | 316 +- scripts/rst2wiki.py | 125 + setup.cfg | 3 + setup.py | 39 +- tickets.csv | 115 + tickets.rss | 7578 ++++++++++++++++++++ unit_tests/support/doctest/err_doctests.py | 12 + unit_tests/support/doctest/no_doctests.py | 9 + unit_tests/support/issue006/tests.py | 19 + unit_tests/test_config.py | 3 + unit_tests/test_doctest_error_handling.py | 46 + unit_tests/test_issue_006.py | 31 + unit_tests/test_plugins.py | 46 +- unit_tests/test_tools.py | 59 + unit_tests/test_twisted.py | 39 +- unit_tests/test_twisted_testcase.py | 6 + 39 files changed, 9024 insertions(+), 333 deletions(-) create mode 100644 nosetests.1 create mode 100644 scripts/rst2wiki.py create mode 100644 tickets.csv create mode 100644 tickets.rss create mode 100644 unit_tests/support/doctest/err_doctests.py create mode 100644 unit_tests/support/doctest/no_doctests.py create mode 100644 unit_tests/support/issue006/tests.py create mode 100644 unit_tests/test_doctest_error_handling.py create mode 100644 unit_tests/test_issue_006.py create mode 100644 unit_tests/test_twisted_testcase.py diff --git a/CHANGELOG b/CHANGELOG index 762723aa..45e1758d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,14 +1,59 @@ +0.9.3 + +- Added support for user configuration files. Thanks to Antoine Pitrou for the + patch. +- Fixed bug that caused profiler plugin to leak 0-byte temp files. Thanks to + Antoine Pitrou for the patch. +- Made usage of temp files in profiler plugin more sensible. Thanks to Michael + Sclenker for the bug report. +- Fixed bug that stopped loading of twisted TestCase tests. Thanks to Kumar + McMillan for the bug report. +- Corrected man page location. Thanks to luke macken for the bug report and + patch. +- Added with_setup to nose.tools.__all__. Thanks to Allen Bierbaum for the bug + report. +- Altered plugin loading so that builtin plugins can be loaded without + setuptools. Thanks to Allen Bierbaum for the suggestion. +- Fixed a bug in the doctests plugin that caused an error when multiple + exclude arguments were specified. Thanks to mbeachy for the bug report and + patch. + 0.9.2 +- Added nosetests setuptools command. Now you can run python setup.py + nosetests and have access to all nose features and plugins. Thanks to James + Casbon for the patch. - Added make_decorator function to nose.tools. Used to construct decorator functions that are well-behaved and preserve as much of the original function's metadata as possible. Thanks to Antoine Pitrou for the patch. - Added nose.twistedtools, contributed by Antoine Pitrou. This module adds @deferred decorator that makes it simple to write deferred tests, with or without timeouts. -- Added nosetests setuptools command. Now you can run python setup.py - nosetests and have access to all nose features and plugins. Thanks to James - Casbon for the patch. +- Added monkeypatch to doctests that keeps doctest from stepping on coverage + when the two plugins are used together. Thanks to David Avraamides for the + bug report. +- Added isolation plugin. Use this plugin to automatically restore sys.modules + after each test module or package. Thanks to Michal Kwiatkowski for the + feature request. +- Fixed bug where -vvvv turned off verbose logging instead of making it even + more verbose. Thanks to Ian Bicking for the bug report. +- Fixed bug where assert inspection would fail when the trailing """ of a + docstring was one of the inspected lines. Thanks to cito at online dot de + for the bug report. +- Updated attrib plugin to allow selection of test methods by attributes of + the test case class. Thanks to Jason Hildebrand for the patch. +- Improved compatibility with python 2.2. Thanks to Chad Whitacre for the + patch. +- Fixed bug in handling of options from setup.cfg. Thanks to Kumar McMillan for + the patch. +- Fixed bug in generator methods, where a generator method using an inline + funciton would result in an AttributeError. Thanks to Antoine Pitrou for the + bug report. +- Updated coverage plugin to ignore lines tagged with #pragma: no cover, + matching the behavior of coverage.py on the command line. Thanks to Bill + Zingler for the bug report. +- Added a man page for nosetests. Thanks to Gustavo Noronha Silva for the + request and providing an example. 0.9.1 diff --git a/MANIFEST.in b/MANIFEST.in index 7f6cbd7a..cab3dbb1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -7,4 +7,5 @@ include unit_tests/*/*/*/*/*.py include CHANGELOG include NEWS include README.txt -include lgpl.txt \ No newline at end of file +include lgpl.txt +include nosetests.1 \ No newline at end of file diff --git a/NEWS b/NEWS index 4ec2e97a..ab1c979c 100644 --- a/NEWS +++ b/NEWS @@ -1,19 +1,16 @@ -New in version 0.9.1 +New in version 0.9.3 -------------------- -Nose 0.9.1 is mainly a bug-fix release, but it does contain a few new -features. +nose 0.9.3 is mainly a bugfix release. The one new feature is support for user +configuration files: now you can put your frequently used configuration +options in .noserc or nose.cfg files, rather than typing them over and over +and over again. Many thanks to Antoine Pitrou for that patch, and thanks to +all of the other users who reported bugs and submitted patches and +suggestions. -* The --where (-w), --include and --exclude arguments may now all appear - multiple times in a single command line, allowing easier running of - multiple test suites and test suites with more diverse layouts. -* For programmatic use, nose.runmodule() was added. Similar to - doctest.runmodule() and unittest.main(), nose.runmodule() will load and run - tests in the current module, which defaults to __main__. -* A number of changes to plugins and plugin hooks make current plugins work - better and allow more interesting plugins to be written. +Barring catastrophic bugs, this will be the last release of nose in the 0.9 +series. An alpha release of nose 0.10 should be forthcoming within a few +weeks. Details about the new features and architecture changes in nose 0.10 +may be found here_. -Just about everything in this release was driven by requests from -users. Thanks to the many folks who filed bug reports and suggested features, -ideas and solutions to thorny problems. - \ No newline at end of file +.. _here: http://code.google.com/p/python-nose/wiki/VersionZeroTen diff --git a/README.txt b/README.txt index ed598697..36d903a6 100644 --- a/README.txt +++ b/README.txt @@ -30,7 +30,7 @@ understand and hack. Other goals include: interact with tests more easily. This involves some major changes to how nose loads and runs tests. - + Changes to loading ================== diff --git a/index.html.tpl b/index.html.tpl index 235f8ca2..22d1b003 100644 --- a/index.html.tpl +++ b/index.html.tpl @@ -125,6 +125,11 @@ margin-bottom: 0px; } + p.note { + background: #fed; + border: 1px solid black; + padding: 6px; + } @@ -157,11 +162,11 @@

Sign up to receive email announcements of new releases

-

Trac

+

Tracker

Report bugs, request features, wik the wiki, browse source.

Get the code

-

svn co http://svn.nose.python-hosting.com/trunk

+

svn co http://python-nose.googlecode.com/svn/trunk/ nose

Other links