holger krekel
10b8de060a
fix py.code.compile to generate unique filenames
...
--HG--
branch : trunk
2010-06-06 19:08:22 +02:00
holger krekel
10baa7f8af
fix python3 failure by making a relative import work
...
--HG--
branch : trunk
2010-06-05 16:10:17 +02:00
holger krekel
740a668f52
adding a tox file and a note in changelog
...
--HG--
branch : trunk
2010-06-05 15:59:11 +02:00
holger krekel
c56f4f9444
don't depend on (and don't actually use anymore) testing/__init__.py
...
--HG--
branch : trunk
2010-06-04 00:39:58 +02:00
holger krekel
bdd1006e06
don't print empty lines with junitxml file printing
...
--HG--
branch : trunk
2010-06-04 00:39:18 +02:00
holger krekel
46f72d9350
add a CHANGELOG entry for ronny's changes
...
--HG--
branch : trunk
2010-06-03 15:51:59 +02:00
Ronny Pfannschmidt
f8404be1b2
add a rootdir param to py.path.local.mkdtemp
...
--HG--
branch : trunk
2010-06-03 11:14:32 +02:00
Ronny Pfannschmidt
2e82ca5fde
use tempdir.mkdtmp instead of mktmp + repeated tries for making tmpdirs
...
--HG--
branch : trunk
2010-06-03 10:59:24 +02:00
Ronny Pfannschmidt
a07e494554
add kwarg support to py.errpr.checked_call
...
--HG--
branch : trunk
2010-06-03 10:21:48 +02:00
holger krekel
75d80ca183
fix pyimport() bug on directories
...
--HG--
branch : trunk
2010-05-31 17:06:46 +02:00
holger krekel
395bee4bc0
fix name of fedora package, thanks thm
...
--HG--
branch : trunk
2010-05-29 09:15:50 +02:00
holger krekel
b66b5e2715
fix issue 57 - make --looponfail work with xpassing tests
...
--HG--
branch : trunk
2010-05-26 18:55:50 +02:00
holger krekel
73d9900844
add Meme's pytest-cov plugin to the plugin index page
...
--HG--
branch : trunk
2010-05-26 14:48:27 +02:00
holger krekel
6cc89c9fcf
Added tag 1.3.1 for changeset 8b8e7c25a13c
...
--HG--
branch : trunk
2010-05-25 21:09:21 +02:00
holger krekel
2e36e2619f
update plugin docs, restructure release announcement a bit
...
--HG--
branch : trunk
2010-05-25 21:01:43 +02:00
holger krekel
3042d1442a
Added tag 1.3.1 for changeset d5eacf390af7
...
--HG--
branch : trunk
2010-05-25 20:47:00 +02:00
holger krekel
312238c023
update release announcement
...
--HG--
branch : trunk
2010-05-25 20:46:51 +02:00
holger krekel
ff2b893d31
fix for py3 exception printing logic
...
--HG--
branch : trunk
2010-05-25 17:24:24 +02:00
holger krekel
c953c7d313
fix issue102 by introducing a --maxfailures=NUM option
...
also print an informative line about "stopped/interrupted" test runs
near the end.
--HG--
branch : trunk
2010-05-25 16:52:09 +02:00
holger krekel
fbcf9ec543
merge changes
...
--HG--
branch : trunk
2010-05-25 16:55:30 +02:00
holger krekel
9173b60677
internal test runs: do inline_run() without io-capturing
...
as this nested capturing can leave open FDs which breaks
larger test runs. also introduce an internal option "--lsof"
for checking the number of file descriptors
--HG--
branch : trunk
2010-05-25 12:24:51 +02:00
holger krekel
7fc7b4307b
adding xfail example
...
--HG--
branch : trunk
2010-05-22 17:22:31 +02:00
holger krekel
545aab85f2
py-1.3.1 release prep and version bumping
...
--HG--
branch : trunk
2010-05-22 17:11:30 +02:00
holger krekel
fa074da5a9
when --runxfail is supplied also show tracebacks when running a test that
...
calls py.test.xfail
--HG--
branch : trunk
2010-05-22 17:08:49 +02:00
holger krekel
29a5b7452e
* improve and test --tb=short reporting
...
* show --tb=short tracebacks for importing test modules
--HG--
branch : trunk
2010-05-22 16:18:24 +02:00
holger krekel
94ce5b0a5a
refine and structure CHANGELOG
...
--HG--
branch : trunk
2010-05-22 14:13:01 +02:00
holger krekel
93712a3ce6
terser reporting header
...
--HG--
branch : trunk
2010-05-22 13:59:01 +02:00
holger krekel
6f697294b2
fix for python3 - class.__dict__ is now a dict_proxy which doesn't have setdefault() anymore.
...
--HG--
branch : trunk
2010-05-22 10:12:57 +02:00
holger krekel
7cba3a07af
update docs: mention that py.test.xfail is there
...
--HG--
branch : trunk
2010-05-21 18:16:16 +02:00
holger krekel
4f7ef0b63f
fix issue89 - allow py.test.mark decorators to be used with classes
...
(if you are using >=python2.6)
also allow to have multiple markers applied at class level
and test and fix a bug with chained skip/xfail decorators:
if any of the conditions is true a test will be skipped/xfailed
with a explanation which condition evaluated to true.
--HG--
branch : trunk
2010-05-21 18:11:47 +02:00
holger krekel
67ec87e7f9
note that issue99 is also fixed
...
--HG--
branch : trunk
2010-05-21 16:51:15 +02:00
holger krekel
578cba20d4
fix issue94 make reporting more robust against bogus source code
...
(and internally be more careful when presenting unexpected byte sequences)
also make py.code.Source accept a list of lines directly.
--HG--
branch : trunk
2010-05-21 16:42:46 +02:00
holger krekel
93f91c9607
unify handling of reportcharacters across resultlog/junitxml plugins
...
--HG--
branch : trunk
2010-05-20 14:35:13 +02:00
holger krekel
925f75088d
fix issue91 introduce new py.test.xfail(reason) helper
...
to imperatively mark a test as expected to fail. Can
be used from within setup and test functions. This is
useful especially for parametrized tests when certain
configurations are expected-to-fail. In this case the
declarative approach with the @py.test.mark.xfail cannot
be used as it would mark all configurations as xfail.
--HG--
branch : trunk
2010-05-20 13:29:51 +02:00
holger krekel
eac0345689
fix wrong test invocation
...
--HG--
branch : trunk
2010-05-19 17:05:13 +02:00
holger krekel
20424a9c76
fix and test "-rP" option to show xpass-test ids
...
--HG--
branch : trunk
2010-05-19 16:52:03 +02:00
holger krekel
2229d2d947
revert 1735 - fix issue95 differently: just shift the offending zlib
...
import (and others) to happen when they are actually needed
--HG--
branch : trunk
2010-05-19 16:42:22 +02:00
holger krekel
c3bd29b490
fix issue95 - treat a failing pytest_genscript import
...
as non-critical, give a hint.
--HG--
branch : trunk
2010-05-19 16:22:23 +02:00
holger krekel
f552749de6
a crucial close() to prevent too-many-open-files
...
--HG--
branch : trunk
2010-05-18 21:25:20 +02:00
holger krekel
cf255cd643
some special handling of stdin capturing, unification, un-xfail the win32 test
...
--HG--
branch : trunk
2010-05-18 12:12:34 -07:00
holger krekel
10296faff1
for now don't test close(0) on windows - it hangs there
...
--HG--
branch : trunk
2010-05-18 11:43:22 -07:00
holger krekel
9f5e6f9761
simplify and unify FDCapture API and usage:
...
* FDCapture now takes care through the 'patchsys' option to
also set sys.stdin/out/err - setfiles/unsetfiles methods removed -
i doubt anybody uses this outside of py.test's own old usage.
* stdin also goes through FDCapture now.
--HG--
branch : trunk
2010-05-18 20:03:44 +02:00
holger krekel
c790288a5f
fix issue98 - xdist documentation wrongly told to set pytest_option_X
...
where it is only option_X that is correct.
--HG--
branch : trunk
2010-05-18 18:45:12 +02:00
holger krekel
da097c9d67
deal gracefully with invalid file descriptors - don't capture the particular stream
...
--HG--
branch : trunk
2010-05-18 16:52:56 +02:00
holger krekel
4f5d7948f7
- try to fix the nightly failures by refining internal capturing mechanism
...
and adding tests, including a "lsof" test for making sure the number of
open file descriptors does not increase.
- also move a py.io related logging test to testing/io
--HG--
branch : trunk
2010-05-18 16:01:58 +02:00
holger krekel
1a97c59439
fix test to account for earlier capfd skipping (on jython)
...
--HG--
branch : trunk
2010-05-18 09:54:04 +02:00
holger krekel
e71685736e
fix issue96 - make capturing more resilient against KeyboardInterrupt
...
--HG--
branch : trunk
2010-05-17 19:00:39 +02:00
holger krekel
5876736890
tentative fix to py3's dependency on a filename->module->__loader__ chain
...
for executing inspect.findsource ...
--HG--
branch : trunk
2010-05-14 23:26:27 +02:00
holger krekel
f97e082543
fix test to work on jython and cpy
...
--HG--
branch : trunk
2010-05-14 15:25:24 +02:00
holger krekel
91880ffc19
adding three x-failing tests for issue88, issue93 and related issues
...
--HG--
branch : trunk
2010-05-14 12:02:43 +02:00