Changeset 108
- Timestamp:
- Sun Oct 22 14:17:11 2006
- Files:
-
- trunk/CHANGELOG (modified) (diff)
- trunk/unit_tests/test_cases.py (modified) (diff)
- trunk/nose/tools.py (modified) (diff)
- trunk/index.html.tpl (modified) (diff)
- trunk/NEWS (modified) (diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
trunk/CHANGELOG
r105 r108 40 40 - Make --exe option do what it says, and turn it on by default on 41 41 Windows. Add --noexe option so windows users can turn if off.Thanks 42 richard @artsalliancemedia.com for the bug reports.42 richard at artsalliancemedia dot com for the bug reports. 42 42 - Handle a working directory that happens to be in the middle of a package 43 43 more gracefully. Thanks Max Ischenko for the bug report and test case. … … 51 51 0.9.0b2 52 52 53 - Allow --debug to set any logger to DEBUG. Thanks to casbon at gmail dot com for 53 54 the patch. 54 55 - Fix doctest help, which was missing notes about the environment variables … … 66 66 - Fix bug in nose.importer that would cause an attribute error when a local 67 67 module shadowed a builtin, or other object in sys.modules, without a 68 __file__ attribute. Thanks to casbon at gmail .com for the bug report.68 __file__ attribute. Thanks to casbon at gmail dot com for the bug report. 68 68 - Fix bug in nose.tools decorators that would cause decorated tests to appear 69 69 with incorrect names in result output. -
trunk/unit_tests/test_cases.py
r26 r108 28 28 case(res) 29 29 assert a[0] == 1 30 31 def test_function_test_case_fixtures(self): 32 from nose.tools import with_setup 33 res = unittest.TestResult() 34 35 called = {} 36 37 def st(): 38 called['st'] = True 39 def td(): 40 called['td'] = True 41 42 def func_exc(): 43 called['func'] = True 44 raise TypeError("An exception") 45 46 func_exc = with_setup(st, td)(func_exc) 47 case = nose.case.FunctionTestCase(func_exc) 48 case(res) 49 assert 'st' in called 50 assert 'func' in called 51 assert 'td' in called 30 52 31 53 if __name__ == '__main__': -
trunk/nose/tools.py
r62 r108 72 72 raise TimeExpired("Time limit (%s) exceeded" % limit) 73 73 try: 74 newfunc.__dict__.update(func.__dict__) 74 75 newfunc.__doc__ = func.__doc__ 75 76 newfunc.__module__ = func.__module__ -
trunk/index.html.tpl
r104 r108 62 62 } 63 63 64 #menu ul , #news ul{64 #menu ul { 64 64 margin: 0 1em .25em; 65 65 padding: 0; … … 125 125 margin-bottom: 0px; 126 126 } 127 127 128 </style> 128 129 </head> -
trunk/NEWS
r105 r108 3 3 4 4 Nose 0.9.1 is mainly a bug-fix release, but it does contain a few new 5 features :5 features. 5 5 6 - The --where (-w), --include and --exclude arguments may now all appear 7 multiple times in a single command line, allowing easier running of 8 multiple test suites and test suites with more diverse layouts. 9 10 - For programmatic use, nose.runmodule() was added. Similar to 11 doctest.runmodule() and unittest.main(), nose.runmodule() will load and run 12 tests in the current module, which defaults to __main__. 13 14 - A number of changes to plugins and plugin hooks make current plugins work 15 better and allow more interesting plugins to be written. 6 * The --where (-w), --include and --exclude arguments may now all appear 7 multiple times in a single command line, allowing easier running of 8 multiple test suites and test suites with more diverse layouts. 9 * For programmatic use, nose.runmodule() was added. Similar to 10 doctest.runmodule() and unittest.main(), nose.runmodule() will load and run 11 tests in the current module, which defaults to __main__. 12 * A number of changes to plugins and plugin hooks make current plugins work 13 better and allow more interesting plugins to be written. 16 14 17 15 Just about everything in this release was driven by requests from 18 16 users. Thanks to the many folks who filed bug reports and suggested features, 19 17 ideas and solutions to thorny problems. 18
