Commit Graph

230 Commits

Author SHA1 Message Date
Benjamin Peterson ee1747fcb4 make all syntax compatible with 3.1 and 2.5
--HG--
branch : trunk
2009-08-29 13:04:48 -05:00
holger krekel 1dafcc6b37 fix py/io classes and tests to pass 3.1
introduce py.builtin._totext helper to make a 2k=unicode / 3k=str object, allow a string as data

--HG--
branch : trunk
2009-08-29 15:51:49 +02:00
Benjamin Peterson c2d0c52086 replace iteritems() with items()
--HG--
branch : trunk
2009-08-29 07:03:19 -05:00
holger krekel 783e6aeb4d temporary checking towards 3.1 compatibility
introduced some helpers to py.builtin namespace which need some review
after things begin to work more nicely

--HG--
branch : trunk
2009-08-28 19:16:15 +02:00
holger krekel 5e95feaf90 * add print_, exec_ and _reraise helpers for 2-3 compatible code
* consolidate builtins implementation to be compatible with >=2.3

--HG--
branch : trunk
2009-08-28 16:25:29 +02:00
holger krekel d1932a30ed deprecate py.compat.doctest|subprocess|textwrap|...
(and for now pass through Python stdlib provided modules).

--HG--
branch : trunk
2009-08-27 21:12:55 +02:00
holger krekel 13932b7f4b * deprecate py.magic.invoke/revoke in favour of
the new py.code.patch_builtins, py.code.unpatch_builtins

* deprecate py.magic.patch/revert

* deprecate py.magic.AssertionError in favour of py.code._AssertionError

* introduced pytest_assertion plugin.

--HG--
branch : trunk
2009-08-27 17:26:02 +02:00
holger krekel 8ee7bef638 consolidate py/code files into code.py, simplify SafeRepr code and docs.
--HG--
branch : trunk
2009-08-25 20:24:43 +02:00
holger krekel 94aef0b771 move and rename html rest helper to rest directory - finally remove py/misc completely
--HG--
branch : trunk
2009-08-25 16:15:17 +02:00
holger krekel d43d69e3db death to "misc" directories. moved most files out of py/misc, either to a
private attic or to other places in the lib.

--HG--
branch : trunk
2009-08-25 16:14:15 +02:00
holger krekel 58a9e71e81 add delattr/delenv/delitem methods and tests, enhance terminalwriter tests
--HG--
branch : trunk
2009-08-22 12:45:58 +02:00
holger krekel 1fcd373bd5 * introduce py.io.TextIO and py.io.StringIO to help with 3k transition and to clarify
intentions when doing "in-memory" files. Replace most usages of StringIO.

* consolidate py.io's files and tests into fewer files, make files 3k-importable

--HG--
branch : trunk
2009-08-20 20:47:39 +02:00
holger krekel f3fcb5e6d3 - strike lots of basically unused code around local path implementation.
and tweak things a bit to make py.path.local at least importable on 3k

- also strike unused somewhat related code in initpkg.py

--HG--
branch : trunk
2009-08-20 19:43:13 +02:00
holger krekel d668acfd99 enable nose by default
--HG--
branch : 1.0.x
2009-08-19 17:53:08 +02:00
holger krekel b1feb81b8a simplify approach to encoding of sys.stdout/stderr files, encode unicode strings and pass-through non-unicode strings
--HG--
branch : 1.0.x
2009-08-19 16:42:29 +02:00
holger krekel 5e4fcdd14e added a pytest_helpconfig plugin which groups --version and the new "--help-config" option. rename options and configuration names. streamlines docs.
--HG--
branch : 1.0.x
2009-08-19 15:45:01 +02:00
holger krekel 30e87e887d shift install test, fix example test, add 1.0.1 release announce
--HG--
branch : 1.0.x
2009-08-18 20:02:52 +02:00
holger krekel 36189a7aa7 [mq]: 101doc
--HG--
branch : 1.0.x
2009-08-18 19:04:57 +02:00
holger krekel 822b69a4e8 use item's own fspath when doing progress reporting, fixes #31
--HG--
branch : 1.0.x
2009-08-17 16:45:52 +02:00
Benjamin Peterson d702f4da14 add a --version option to print the pylib version
--HG--
branch : 1.0.x
2009-08-14 09:16:40 -05:00
holger krekel 7b906ca763 [mq]: monkey
--HG--
branch : 1.0.x
2009-08-13 20:10:12 +02:00
holger krekel 37976be529 [mq]: flexcom
--HG--
branch : 1.0.x
2009-08-11 19:00:41 +02:00
holger krekel b552f6eb46 * add pytest_nose plugin
* have unittest functions always receive a fresh instance

--HG--
branch : 1.0.x
2009-08-10 11:27:13 +02:00
holger krekel a01e4769cc simplify internal plugin dispatching code, rename parts of the py._com plugin helpers
--HG--
branch : 1.0.x
2009-08-09 23:51:25 +02:00
holger krekel 5c8df1d4ca turn some tests from skipped to xfail
strike dead code, small refinements to xfail exception reporting

--HG--
branch : 1.0.x
2009-08-09 23:46:27 +02:00
holger krekel d41949a6e3 Test* classes with an __init__ method are not collected anymore
--HG--
branch : 1.0.x
2009-08-06 18:15:21 +02:00
holger krekel cea46a86aa [mq]: rename
--HG--
branch : 1.0.x
2009-08-06 15:02:38 +02:00
holger krekel 8fcdac9dd6 * fix capturing and unicode printing in tests
* introduce "_encoding" to py/io/terminalwriter writing
* beautify a few __repr__ for better internal debugging

--HG--
branch : 1.0.x
2009-08-06 14:34:19 +02:00
holger krekel 8c8617c354 * rename "rep" to "report" in reporting hooks
* refine docs
* bump version data
* improve announcement

--HG--
branch : 1.0.x
2009-08-04 12:00:04 +02:00
holger krekel 66cf2d3092 make pylint plugin not bail out early, still does nothing useful, though
--HG--
branch : 1.0.x
2009-08-03 16:34:48 +02:00
holger krekel 1a570011fe showing relative paths by default, improving xfail output a bit, bumping version info to 1.0.0
--HG--
branch : 1.0.x
2009-08-03 16:01:32 +02:00
holger krekel 30d77f77af shift options and tests to terminal plugin
--HG--
branch : 1.0.x
2009-08-03 15:27:26 +02:00
holger krekel 1349edd3c6 rename iocapture to capture, add/remove some missing files
--HG--
branch : 1.0.x
2009-08-03 12:16:12 +02:00
holger krekel 96c863b3c1 rename pocoo to "pastebin" plugin, write documentation, implement whole-session-pasting
--HG--
branch : 1.0.x
2009-08-03 11:56:56 +02:00
holger krekel e80714d701 fixes for python 2.4
--HG--
branch : 1.0.x
2009-07-31 15:35:22 +02:00
holger krekel a7382df5e9 fix/work around some corner cases for dist-testing
--HG--
branch : 1.0.x
2009-07-31 14:22:02 +02:00
holger krekel 737c32c783 handle final teardown properly, add a new experimental hook for it.
--HG--
branch : 1.0.x
2009-07-31 14:22:02 +02:00
holger krekel 61c53602f2 introduce new "Error" outcome and group setup/teardown and collection failures into that category. Report them separately.
--HG--
branch : 1.0.x
2009-07-31 14:22:02 +02:00
holger krekel be949f4037 * reworked capturing to only capture once per runtest cycle
* added readouterr() method to py.io capturing helpers

--HG--
branch : 1.0.x
2009-07-31 14:21:02 +02:00
holger krekel ad34e50b71 properly handle test items that get locally collected but cannot be collected on the remote side (often due to platform reasons)
--HG--
branch : 1.0.x
2009-07-30 09:52:12 +02:00
holger krekel dcf194ebb8 simplify py.test.mark API,
add more plugin docs

--HG--
branch : 1.0.x
2009-07-28 14:26:32 +02:00
holger krekel 9aa781907e enable capturing during collect
added a few xfailed tests for fixture reporting

--HG--
branch : 1.0.x
2009-07-25 18:45:04 +02:00
holger krekel 04e9197fd6 * reworked per-test output capturing into the pytest_iocapture.py plugin
* removed all capturing code from config object and pytest_default plugins

* item.repr_failure(excinfo) instead of item.repr_failure(excinfo, outerr)

* added a few logging tests

--HG--
branch : 1.0.x
2009-07-25 18:09:01 +02:00
holger krekel 7fabb3df69 update docs, leave out internal plugins
--HG--
branch : 1.0.x
2009-07-22 16:09:49 +02:00
holger krekel 155ffa07de applying samuele's patch fixing a regression
resolves issue #26

--HG--
branch : 1.0.x
2009-07-22 14:50:17 +02:00
holger krekel 6216ab2bb7 adding a test and some support code for creating
an "sdist" package, unpacking in a virtualenv and
importing and verifying the version

--HG--
branch : 1.0.x
2009-07-22 14:47:10 +02:00
holger krekel 066f8e854d * refine keyboardinterrupt handling for --dist
* generate tests for various options

--HG--
branch : 1.0.x
2009-07-22 14:39:09 +02:00
holger krekel 4f735a66c5 improve unittest documentation, enable plugin by default
--HG--
branch : 1.0.x
2009-07-20 18:54:18 +02:00
holger krekel 16aa1571c0 new cleaner layout, many improvements to docs
--HG--
branch : 1.0.x
2009-07-20 18:54:08 +02:00
holger krekel 8be0ea942a introduced pytest_keyboardinterrupt hook
removed optional argument from pytest_sessionfinish hook

--HG--
branch : 1.0.x
2009-07-20 14:01:40 +02:00