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
holger krekel
169d8d1e54
fix test to account for jython python file ending
...
--HG--
branch : trunk
2010-05-12 14:12:07 +02:00
holger krekel
11bf293972
merging again - seems i am using mercurial wrong or in some confused way ...
...
--HG--
branch : trunk
2010-05-12 14:14:05 +02:00
holger krekel
9cc6b602b9
remove duplicate and done issues
...
--HG--
branch : trunk
2010-05-12 11:23:31 +02:00
holger krekel
3d70917758
merge with issue-commits
...
--HG--
branch : trunk
2010-05-12 10:56:37 +02:00
holger krekel
0cebee2d24
bump version to 1.3.1a1 for now
...
--HG--
branch : trunk
2010-05-12 10:30:34 +02:00
holger krekel
379390a8aa
remove code.new() function and store lines directly into linecache.cache instead.
...
This avoids the need for custom code objects, improving compatibility for jython
and pypy-c.
--HG--
branch : trunk
2010-05-11 22:54:04 +02:00
holger krekel
8ba2a98e11
allow to run py.test.cmdline.main() multiple times.
...
--HG--
branch : trunk
2010-05-11 19:56:22 +02:00
holger krekel
0f5ed3abc7
avoid helper functions showing up in py.test tracebacks
...
--HG--
branch : trunk
2010-05-11 17:43:56 +02:00
holger krekel
74b8fdf28a
add an issue about py.test.config deprecation
...
--HG--
branch : trunk
2010-05-10 18:54:17 +02:00
holger krekel
f266c8f92f
fix init-check to work also on pypy-c (armin around)
...
--HG--
branch : trunk
2010-05-09 12:27:04 +02:00
holger krekel
afdb928b12
update ISSUES
...
--HG--
branch : trunk
2010-05-09 08:43:28 +02:00
holger krekel
1706947edd
fix some ReST issues
...
--HG--
branch : trunk
2010-05-05 22:04:53 +02:00
holger krekel
54afd26c7e
fix typo
...
--HG--
branch : trunk
2010-05-05 21:53:36 +02:00
holger krekel
05ab5ad6d5
Added tag 1.3.0 for changeset eafd3c256e87
...
--HG--
branch : trunk
2010-05-05 21:35:24 +02:00
holger krekel
a127767da6
fix interpreter compat
...
--HG--
branch : trunk
2010-05-05 21:03:43 +02:00
holger krekel
a7d646c5e7
updating docs
...
--HG--
branch : trunk
2010-05-05 21:01:54 +02:00
holger krekel
87fcea7eb7
update release announcement
...
--HG--
branch : trunk
2010-05-05 20:19:02 +02:00
holger krekel
ee036223ce
deprecate --report option in favour of a new shorter and easier to remember -r option: this takes a string argument consisting of any combination of 'xsfX'
...
Those letters basically correspond to the letters you see during terminal reporting.
--HG--
branch : trunk
2010-05-05 19:50:59 +02:00
holger krekel
325cb0aa49
add python3 classifier
...
--HG--
branch : trunk
2010-05-05 14:24:02 +02:00
holger krekel
c933ada7fb
new --runxfail option to ignore xfail markers on functions
...
--HG--
branch : trunk
2010-05-04 13:02:27 +02:00
holger krekel
28150c7486
add unit-tests for xfail and refine xfail handling and reporting
...
--HG--
branch : trunk
2010-05-04 12:37:56 +02:00
holger krekel
dd7fd97810
add a terminalreporter.testid method
...
--HG--
branch : trunk
2010-05-04 12:37:52 +02:00
holger krekel
1a8b2838fa
add new parameters:
...
xfail(run=False) will not run expected-to-fail tests
xfail(reason=True) will report the specified reason
--HG--
branch : trunk
2010-05-02 22:13:16 +02:00
holger krekel
82d4aae571
some internal fixes regarding the new required hook-finding prefix
...
--HG--
branch : trunk
2010-05-02 17:10:38 +02:00
holger krekel
fd473d4002
refine and test new hook registration, now it is called "pytest_addhooks"
...
similar to pytest_addoption and raises on bogus input.
--HG--
branch : trunk
2010-05-02 16:36:53 +02:00
holger krekel
45e10f4c48
rename pytest_ignore_collect_path to pytest_ignore_collect before release
...
--HG--
branch : trunk
2010-05-02 15:24:02 +02:00
holger krekel
3efb8028fb
update changelog, install info and bum version to 1.3.0
...
rather than 1.2.2 because of the added features
--HG--
branch : trunk
2010-05-02 15:06:20 +02:00
holger krekel
b8247bc91e
update implementation ISSUES, add one for session/refinements/a collection crash
...
--HG--
branch : trunk
2010-04-30 20:03:57 +02:00
holger krekel
2630a452b4
fixing and adding to CHANGELOG
...
--HG--
branch : trunk
2010-04-30 09:53:26 +02:00
Ronny Pfannschmidt
b3ce06bbf9
add close method to DontReadFromInput so multiprocessing can close it
...
--HG--
branch : trunk
2010-04-29 19:46:43 +02:00
holger krekel
962d0fe2be
introduce new pytest_pycollect_makemodule(path, parent) hook for
...
allowing customization of the Module collection object for a matching test module.
--HG--
branch : trunk
2010-04-29 16:53:29 +02:00
holger krekel
811408959f
introduce a new pytest_ignore_collect_path(path, config) hook -
...
returning a true value will prevent considering the path for collection
The hook is called for both files and directory paths.
--HG--
branch : trunk
2010-04-29 16:20:55 +02:00
holger krekel
25ed74a77a
refine to allow more characters for instance reprs like it was before
...
--HG--
branch : trunk
2010-04-29 15:52:59 +02:00
holger krekel
5ece3858e4
introduce new py.io.saferepr for printing the 'repr' of an object safely
...
and without consuming too much space
--HG--
branch : trunk
2010-04-29 14:17:07 +02:00
holger krekel
1c1623885f
fix a py3k related skip - py.io.TextIO on py3k should probably
...
not allow to write bytes to it.
--HG--
branch : trunk
2010-04-29 10:50:20 +02:00
holger krekel
5dc66bb4ca
make py.io.ansi_print and py.io.get_terminal_width() directly available.
...
--HG--
branch : trunk
2010-04-29 10:49:50 +02:00
holger krekel
030548bc73
expose py.code._reinterpret functions so that pypy and internal
...
uses don't need to go through internal implementation imports
--HG--
branch : trunk
2010-04-29 01:20:56 +02:00
Benjamin Peterson
78d67c007b
be more robust about bad std stream encodings
...
--HG--
branch : trunk
2010-04-28 17:19:49 -05:00
Benjamin Peterson
d93016d85f
remove the unused return value of fnmatch_lines
...
--HG--
branch : trunk
2010-04-28 17:12:38 -05:00
Benjamin Peterson
f2be437daa
some py3 encoding fixes
...
Also return True if fnmatch succeeds.
--HG--
branch : trunk
2010-04-28 16:51:36 -05:00