Benjamin Peterson
3d2975f38e
support floats
...
--HG--
branch : trunk
2009-09-26 18:26:32 -05:00
Benjamin Peterson
c3fd7f0247
don't need to import py
...
--HG--
branch : trunk
2009-09-26 14:22:01 -05:00
Benjamin Peterson
cb5bd868d9
use default argument
...
--HG--
branch : trunk
2009-09-26 14:21:36 -05:00
Benjamin Peterson
0f96be372d
clean up unused compatibility code
...
--HG--
branch : trunk
2009-09-26 14:20:36 -05:00
Benjamin Peterson
4d598370b4
test cross version serialization by launching subprocesses; much cleaner!
...
--HG--
branch : trunk
2009-09-26 12:35:24 -05:00
Benjamin Peterson
1e71a5c392
Add a simple (hopefully) cross-python marshaller
...
Will rewrite the tests soon...
--HG--
branch : trunk
2009-09-22 21:08:40 -05:00
holger krekel
e3b34c9da3
* allowing arbitrary keys for xspecs but adding some sanity checks to xspec-parsing and makegateway.
...
* fixing a python3 IO issue - we need to retain sys.stdout/stdin
references to keep the underlying byte stream open.
--HG--
branch : trunk
2009-09-22 18:40:20 +02:00
holger krekel
47bad98c07
* various cleanups and detailed doc string for gateway_base module
...
* remove old multi-file-send mechanism/tests now that
only gateway_base is send to the other side.
* adding some (c) notices where i am pretty sure about them.
--HG--
branch : trunk
2009-09-11 16:26:19 +02:00
holger krekel
5df58c619d
* move gateway management code to py/test/dist because it's not clear
...
how generally useful it is.
* provide pytest_dist_makegateway(txspec) hook so that plugins
can add their own interpretation/keywords.
--HG--
branch : trunk
2009-09-09 20:12:03 +02:00
holger krekel
b70c7a209d
* moving execnet tests to funcarg-style, some cleanup
...
* slight refinement to FAQ license topic
--HG--
branch : trunk
2009-09-08 10:10:36 +02:00
holger krekel
29d437489d
some fixes to support Jython better
...
--HG--
branch : trunk
2009-09-07 14:59:26 +02:00
holger krekel
c8119d89b6
move test files out of py lib proper
...
* separate all tests from plugins
* simplify implicit inclusion of plugins under test
* have test_initpkg perform direct checks instead of yielding tests
* fix example tests for 3k
--HG--
branch : trunk
2009-09-06 16:59:39 +02:00
holger krekel
5cf27098cf
execnet cleanup/refinements: avoid creating a shell for each subprocess
...
* introduce HostNotFound, raised for Socket and SshGateways
* factored out basic tests, cleaned up existing tests
* removed sshgateway identity argument which was deprecated in 1.0
--HG--
branch : trunk
2009-09-06 13:38:21 +02:00
holger krekel
518194537e
* refactor some setup/teardown/ensuretemp usages to use funcargs
...
* introduce monkeypatch.syspath_prepend for safe monkey patching of module import path
* fix monkeypatch naming
--HG--
branch : trunk
2009-09-05 23:21:58 +02:00
holger krekel
bde56a8246
* fixing lots of remaining 3k compatibility issues, mostly with py.test itself.
...
* removing very old import-tests that IIRC relate to a time when there
was a custom import hook in use.
* basically py.test internal tests pass now except py3/py2 distributed
testing tests
--HG--
branch : trunk
2009-09-04 21:47:49 +02:00
holger krekel
1e51844519
introduce py.builtin._tryimport to try importing modules in a row, fix a few places
...
--HG--
branch : trunk
2009-09-04 19:08:10 +02:00
holger krekel
5851471009
fix remaining execnet 3k issues until all tests pass
...
--HG--
branch : trunk
2009-09-04 16:51:29 +02:00
holger krekel
c7f11745cd
* fix various remaining 3k issues until test_gateway.py passes with python3 py/bin/py.test
...
* we now wait on gateway initialization until we got a byte back after
we sent the bootstrap
--HG--
branch : trunk
2009-09-02 21:05:08 +02:00
holger krekel
6c3e961bc5
* simplify stdout/stderr handling and modules and for now remove support
...
for directly stdout/stderr directly on remote_exec
--HG--
branch : trunk
2009-09-02 19:39:24 +02:00
holger krekel
73fc2f01f2
filter out and test exception printing
...
--HG--
branch : trunk
2009-09-02 19:05:34 +02:00
holger krekel
e30aeed876
* more tests and fixes for cross-python compatibility
...
* use byte-buffer files if available for io
* shift receivelock to gateway object
* kill dead code
--HG--
branch : trunk
2009-09-02 18:56:43 +02:00
holger krekel
5d2504df0a
* simplify lock acquiration for received messages, review code
...
* try to fix seldomly occuring race condition with setcallback/receive and closing of channel
--HG--
branch : trunk
2009-09-02 15:45:59 +02:00
holger krekel
f636ed8ced
* make Gateway interface more asymetric: remote_* methods
...
and cleanup/atexit handling now live exclusively with the "InitiatingGateway"
* fix some cross-python io related handling
--HG--
branch : trunk
2009-09-02 14:31:48 +02:00
holger krekel
c1fcf9c4d8
* use py.builtin._getimself instead of getattr(..., '*self*') everywhere
...
* fix logging to work with 3k, implement buffering manually
* fix unicode capturing issue - re-introduce EncodedFile for <3K file writes
--HG--
branch : trunk
2009-09-01 16:10:21 +02:00
holger krekel
43b8bd7df7
* refactor gateway code and tests to live in fewer files, remove some lock usage
...
* move text files to a new "hacking" directory
--HG--
branch : trunk
2009-09-01 11:39:27 +02:00
Benjamin Peterson
749bfa46c4
convert argument to string
...
--HG--
branch : trunk
2009-08-30 08:25:40 -05:00
Ronny Pfannschmidt
318a935b89
fix module name reuse in execnet
...
--HG--
branch : trunk
2009-08-30 15:00:26 +02:00
Benjamin Peterson
b3e8b2f6ab
handle Queue renaming
...
--HG--
branch : trunk
2009-08-29 15:10:40 -05:00
Benjamin Peterson
9018fe40e3
fix syntax for py3
...
--HG--
branch : trunk
2009-08-29 14:50:29 -05:00
Benjamin Peterson
45a9aa536f
fix need for py import
...
--HG--
branch : trunk
2009-08-29 14:16:54 -05:00
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
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
681d344eac
deprecate py.magic.autopath() and finally remove py/magic directory.
...
--HG--
branch : trunk
2009-08-27 18:46:42 +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
079a2327ec
kill/replace some execnet debug code
...
bump version to "trunk" on trunk
add "py" to rsyncdirs
--HG--
branch : trunk
2009-08-20 16:41:44 +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
d128854674
poll for child process status after exit procedure
...
--HG--
branch : 1.0.x
2009-07-22 13:24:21 +02:00
holger krekel
81d5e572ca
merging some old changes (still struggling with mercurial a bit)
...
--HG--
branch : 1.0.x
2009-07-08 16:44:40 +02:00
holger krekel
8b7dfb29c5
re-introduce py.test.mark and move py.test.xfail to py.test.mark.xfail
...
--HG--
branch : 1.0.x
2009-06-28 13:27:34 +02:00
holger krekel
296a660a73
doc refinements
...
introduce '__channelexec__' + docs
--HG--
branch : 1.0.x
2009-06-26 17:48:46 +02:00
holger krekel
4a48a50e3b
* introduce and document new pytest_namespace hook
...
* remove py.test.mark helper
* move xfail to work directly on py.test namespace, simplified
--HG--
branch : trunk
2009-06-18 17:19:12 +02:00
holger krekel
1b48cbb3c6
* xspec: define str(xspec) to give back the original specification string
...
* fix a test invocation
--HG--
branch : trunk
2009-05-21 14:33:15 +02:00
holger krekel
a58292b473
* streamline hookrecording and global py._com.comregistry patching
...
* this fixes a reporting bug where events from inner test runs would
mix with the outer test run
--HG--
branch : trunk
2009-05-21 09:45:43 +02:00
holger krekel
1973817f11
rename recorder functionality, unify interfaces
...
--HG--
branch : trunk
2009-05-19 19:25:21 +02:00
holger krekel
d9ad2cf761
merging the new function generators, addresses issue 2
...
- introduce a new pytest_genfuncruns hook for generating tests with multiple funcargs
- new and extended docs: doc/test/funcargs.txt
- factor all funcargs related code into py/test/funcargs.py
- remove request.maketempdir call (you can use request.config.mktemp)
--HG--
branch : trunk
2009-05-11 19:23:57 +02:00
holger krekel
541b35270f
care for threading module being set to None already during finalization
...
--HG--
branch : trunk
2009-05-10 21:36:13 +02:00
holger krekel
8182d341a5
rename "api" into "hook" in most places.
...
--HG--
branch : trunk
2009-05-07 18:01:53 +02:00
holger krekel
6b1b3a3494
fix funcarg usage in execnet, regen setup
...
--HG--
branch : trunk
2009-04-14 23:01:46 +02:00
hpk
58cc8c29d3
[svn r63914] py.log._apiwarn is fine enough because it's something
...
of an py lib internal api deprecation mechanism atm.
--HG--
branch : trunk
2009-04-09 22:34:28 +02:00
hpk
2ffb68c177
[svn r63913] make py.log.APIWARN available
...
--HG--
branch : trunk
2009-04-09 22:32:04 +02:00