Commit Graph

748 Commits

Author SHA1 Message Date
hpk 6f145b7c3c [svn r62252] renaming "py.test.keywords" to "py.test.mark".
--HG--
branch : trunk
2009-02-27 20:56:51 +01:00
hpk 82044fd873 [svn r62245] fixed more wrong renames, fine-tuning
--HG--
branch : trunk
2009-02-27 16:46:00 +01:00
hpk 27110ea361 [svn r62244] fixed wrongly renamed methods
--HG--
branch : trunk
2009-02-27 16:45:31 +01:00
hpk c17a09adaf [svn r62211] merge 60797:HEAD of pytestplugin branch:
this merge contains:

* a new plugin architecture
* a pluginized pytest core
* many pytest related refactorings
* refactorings/streamlining of pytest's own tests

--HG--
branch : trunk
2009-02-27 11:18:27 +01:00
getxsick 1c85d7fe9a [svn r61975] subprocess is in stdlib since 2.4
for backwards compatibility we use compat.subprocess if needed

--HG--
branch : trunk
2009-02-17 18:24:41 +01:00
hpk 0dc97ccd5e [svn r61965] correct help string
--HG--
branch : trunk
2009-02-17 12:33:15 +01:00
hpk 186c2610cd [svn r61961] improve documentation about "-k" keyword handling.
--HG--
branch : trunk
2009-02-17 09:56:29 +01:00
getxsick 51e14dd1b0 [svn r61954] removed of using some deprecated modules/functions from stdlib.
used subprocess instead (the module is included to stdlib since 2.4)

--HG--
branch : trunk
2009-02-16 20:30:14 +01:00
getxsick a8578c5cd3 [svn r61864] remove unnecessary bracket from the help message
--HG--
branch : trunk
2009-02-14 03:07:20 +01:00
fijal 1dc8555ca0 [svn r61296] a failing test
--HG--
branch : trunk
2009-01-24 09:44:03 +01:00
hpk 021c1e943d [svn r60976] a few notes regarding improving remote tracebacks for py.execnet
--HG--
branch : trunk
2009-01-14 22:02:14 +01:00
hpk 044adeec0c [svn r60974] some reformulations, less "magic" mentionings
--HG--
branch : trunk
2009-01-14 21:07:05 +01:00
hpk 6863f54951 [svn r60277] triggered by https://codespeak.net/issue/py-dev/issue66
* check for 1.5 messages for non-versioned resources
* modify non-recursive commit test to account for subversion
  behaviour changes (non-recursive commit on directory
  will now commit modified files in it, but will not recurse
  or add subdirs)

--HG--
branch : trunk
2008-12-02 11:08:51 +01:00
pedronis 6ec13a2b9c [svn r60142] - experimental support to let decorators used on tests specify a saner order by attaching the original function (we have been
using something like this for quite a while at OE)
- make the explicit names test more paranoid

--HG--
branch : trunk
2008-11-25 20:15:01 +01:00
pedronis 1a150e9050 [svn r60141] refactor things such that all fallbacks to inspect.get/findsource happen in helpers in source.py
--HG--
branch : trunk
2008-11-25 19:34:47 +01:00
pedronis 5c8b04dacb [svn r60140] simplification, Source will invoke inspect.getsource on its own
--HG--
branch : trunk
2008-11-25 18:32:05 +01:00
pedronis 3ec0a76adb [svn r60139] some minimal testing for Code.source/fullsource
--HG--
branch : trunk
2008-11-25 18:28:40 +01:00
pedronis d491d68d51 [svn r60137] support for explicitly named generative tests with tests and doc addition.
--HG--
branch : trunk
2008-11-25 17:10:16 +01:00
fijal c609974f04 [svn r59871] yet-another-except when trying to get source
--HG--
branch : trunk
2008-11-11 20:11:14 +01:00
pedronis c52d8bcdde [svn r59615] given the format and the fact that external timeout logic may kill a py.test emitting a resultlog switching to line buffering
seems a good idea

--HG--
branch : trunk
2008-11-01 11:01:44 +01:00
arigo 03f51e5edb [svn r59464] Fix for a corner case: when the arguments are 'del'-eted from
the local scope.  This can also occur when using Psyco because
f_locals is then empty.

--HG--
branch : trunk
2008-10-28 10:02:19 +01:00
arigo 5425dba4e5 [svn r59268] An improvement to pdb (which I should also propose as a CPython patch):
in post_portem, the "up" command isn't normally able to walk up past
generator frames.  This fixes it.

--HG--
branch : trunk
2008-10-20 15:45:10 +02:00
fijal 4e3d14162d [svn r58888] Catch all possible find_source errors
--HG--
branch : trunk
2008-10-10 11:59:31 +02:00
hpk 8650c801a2 [svn r58775] only check for Recursion if we have a RuntimeError
--HG--
branch : trunk
2008-10-07 17:44:56 +02:00
hpk c338420976 [svn r58699] show traceback before jumping into pdb
--HG--
branch : trunk
2008-10-07 11:26:56 +02:00
hpk 4b1c2eec3b [svn r58576] * fix test to not rely on time.time() resolution
* strike some superflous __init__ code

--HG--
branch : trunk
2008-10-02 18:19:04 +02:00
hpk af86caf712 [svn r58517] clarify/better english for the cross-python version namespaces
--HG--
branch : trunk
2008-10-01 11:24:24 +02:00
hpk cf833b023c [svn r58516] fix typo
--HG--
branch : trunk
2008-10-01 11:11:29 +02:00
hpk a80bfae0a1 [svn r58386] adding info for debian and rpm systems
--HG--
branch : trunk
2008-09-23 16:42:27 +02:00
hpk a55332091d [svn r58385] * move cross-platform process kill functionality and move it to
py.process.kill(pid)
* simplify test_auth.py
* use new functionality from some tests

--HG--
branch : trunk
2008-09-23 16:28:13 +02:00
hpk 5b21c540b6 [svn r58384] adding a test for unimplemented recording feature
--HG--
branch : trunk
2008-09-23 16:25:16 +02:00
hpk 0974aa784a [svn r58375] some updates on the filesystem front
--HG--
branch : trunk
2008-09-23 12:41:22 +02:00
hpk 863fff7042 [svn r58360] factor import of xml into one method to deal more gracefully
with implementations that don't have expat.

--HG--
branch : trunk
2008-09-23 08:29:17 +02:00
pedronis ed231f4b1b [svn r58350] use optparse
--HG--
branch : trunk
2008-09-22 22:34:40 +02:00
pedronis aeca93f0b3 [svn r58340] this seems to need to be this way, otherwise a py.lookup from PATH will be used or a failure will occur instead
--HG--
branch : trunk
2008-09-22 21:30:13 +02:00
hpk e63da23050 [svn r58319] be more grateful on tests that disappear during a looponfailing session.
--HG--
branch : trunk
2008-09-22 15:15:47 +02:00
pedronis 8b3fe55158 [svn r58316] (iko, pedronis)
move the FileLogSession into the py.lib proper, activated with the option --resultlog (suggestions
for a better name are welcome)

- added its tests
- plus a functional/integration test in test_config in the style of the one for eventlog

--HG--
branch : trunk
2008-09-22 14:34:54 +02:00
hpk ef5709d30b [svn r58311] remove dead code.
--HG--
branch : trunk
2008-09-21 19:51:44 +02:00
hpk 6cdd88eef6 [svn r58309] fix a test, add a comment (pysvnwcrevert cannot be invoked generically)
--HG--
branch : trunk
2008-09-21 17:24:47 +02:00
hpk cc10d84088 [svn r58308] * de-generalize conditional skips and only care
nicely for common tedious causes of skipping:
  import a module and checking it has a certain
  version.  usage example:

  docutils = py.test.importorskip(docutils, minversion="0.4")

* used new helper and cleanup skipping logic in py lib

--HG--
branch : trunk
2008-09-21 17:15:28 +02:00
hpk fa5c975c00 [svn r58300] adding option to specify namespace for ifraises execution.
--HG--
branch : trunk
2008-09-21 15:43:01 +02:00
hpk 13c7fb6709 [svn r58298] move and update TODO file
--HG--
branch : trunk
2008-09-21 14:51:32 +02:00
hpk e77fab82ee [svn r58297] add a new way of conditionally skipping a test:
py.test.skip(ifraises="...")

see more info in the added doc.

also remove a redundant raises test and
cleanup raises code a bit.

--HG--
branch : trunk
2008-09-21 14:50:56 +02:00
hpk cdb8fa1abe [svn r58288] update TODOs, docstring
--HG--
branch : trunk
2008-09-21 10:17:11 +02:00
hpk 94f1abbbb0 [svn r58225] remove outdated comment.
--HG--
branch : trunk
2008-09-18 18:12:18 +02:00
hpk cf007ce7c5 [svn r58224] remove redundant py import, thanks getxsick
--HG--
branch : trunk
2008-09-18 17:41:19 +02:00
pedronis fa5d4dfe92 [svn r58211] allow to specify filenames that need to be preserved
--HG--
branch : trunk
2008-09-17 22:29:35 +02:00
pedronis 33b0390ee6 [svn r58190] adding arigo/hacks/svnwcrevert as a py.svnwcrevert script on py lib trunk
--HG--
branch : trunk
2008-09-17 10:50:04 +02:00
arigo 7afc30d130 [svn r58095] (pedronis, arigo)
KeyboardInterrupt handling:

    * in --verbose mode, print a detailed traceback at the end of
      the report.

    * in non-verbose mode, only print the file name and line number
      where the KeyboardInterrupt occurred.  That's the minimal
      amount of information that is of any help at all to locate
      an infinite loop somewhere.

--HG--
branch : trunk
2008-09-12 22:35:18 +02:00
arigo f12b795147 [svn r58094] (pedronis, arigo)
Partial revert: don't print traceback failures after
InternalExceptions.

--HG--
branch : trunk
2008-09-12 22:04:59 +02:00