From holger at merlinux.eu Sat Sep 24 14:11:27 2011 From: holger at merlinux.eu (holger krekel) Date: Sat, 24 Sep 2011 12:11:27 +0000 Subject: [py-dev] pytest-2.1.2: bug fixes and fixes for jython Message-ID: <20110924121127.GY1684@merlinux.eu> pytest-2.1.2 is a minor backward compatible maintenance release of the popular py.test testing tool. pytest is commonly used for unit, functional- and integration testing. See extensive docs with examples here: http://pytest.org/ Most bug fixes address remaining issues with the perfected assertions introduced in the 2.1 series - many thanks to the bug reporters and to Benjamin Peterson for helping to fix them. pytest should also work better with Jython-2.5.1 (and Jython trunk, but not Jython-2.5.2). If you want to install or upgrade pytest, just type one of:: pip install -U pytest # or easy_install -U pytest best, holger krekel / http://merlinux.eu Changes between 2.1.1 and 2.1.2 ---------------------------------------- - fix assertion rewriting on files with windows newlines on some Python versions - refine test discovery by package/module name (--pyargs), thanks Florian Mayer - fix issue69 / assertion rewriting fixed on some boolean operations - fix issue68 / packages now work with assertion rewriting - fix issue66: use different assertion rewriting caches when the -O option is passed - don't try assertion rewriting on Jython, use reinterp From jaraco at jaraco.com Thu Sep 29 23:39:12 2011 From: jaraco at jaraco.com (Jason R. Coombs) Date: Thu, 29 Sep 2011 14:39:12 -0700 Subject: [py-dev] plugin scoping or control Message-ID: I've run into an issue with pytest_assertrepr_compare - I want the hook to apply to only a subset of tests (tests/unit/**), so I defined tests/unit/conftest.py and defined my pytest_assertrepr_compare there, but still tests under tests/other/** get that behavior (when I run py.test on tests/). Is there a way to cause the hook to be loaded only for tests/unit/** (or some other subset of tests)? Alternatively, is there a way to detect from within the pytest_assertrepr_compare function which module/function is under test and select that way? Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6448 bytes Desc: not available URL: