Commit Graph

597 Commits

Author SHA1 Message Date
fijal 1d6a72d936 [svn r38107] * Have optimise_localhost flag and a test for it (but not turning it on
by default, this will be done later)
* two other occurences of possibly-failing channel.send

--HG--
branch : trunk
2007-02-07 20:24:38 +01:00
hpk d791086561 [svn r38106] making tests independent of --dist implications
--HG--
branch : trunk
2007-02-07 20:16:28 +01:00
fijal 8258b40fd6 [svn r38105] Make errors bright red and bold, easier to spot.
--HG--
branch : trunk
2007-02-07 20:14:10 +01:00
hpk 47aea3ca7b [svn r38104] fixing this so "py.test -s" passes on this as well
--HG--
branch : trunk
2007-02-07 20:04:35 +01:00
fijal 5b188f1167 [svn r38103] Hum. This test was just broken. Fix it and add additional checks.
--HG--
branch : trunk
2007-02-07 20:02:21 +01:00
fijal c5df4c335c [svn r38102] Skip this test not to interfere with py.test.config.boxed
--HG--
branch : trunk
2007-02-07 19:56:48 +01:00
fijal 3bb0c2b433 [svn r38101] oops, this will be implied anyway
--HG--
branch : trunk
2007-02-07 19:56:10 +01:00
fijal d7331146da [svn r38100] Slave is always boxed as well (different level of skips)
--HG--
branch : trunk
2007-02-07 19:55:39 +01:00
fijal ee1214fcfe [svn r38099] * RSession cannot work with nocapture, LSession can
* RSession is always boxed

--HG--
branch : trunk
2007-02-07 19:54:51 +01:00
fijal ecd605e3b2 [svn r38098] A test and typo discovered by that test.
--HG--
branch : trunk
2007-02-07 19:44:49 +01:00
hpk 77b8a010c5 [svn r38097] streamline boxed test configuration:
"config.option.boxed"  indicates now boxed tests
and RSession.fixoptions takes care to honour
dist_boxed accordingly.  So you can do

    if not py.test.config.boxed:
        py.test.skip(...)

i also fixed the documentation.

--HG--
branch : trunk
2007-02-07 19:43:23 +01:00
fijal ae9ffd2c19 [svn r38096] typo
--HG--
branch : trunk
2007-02-07 19:40:16 +01:00
fijal 6e58395de0 [svn r38095] getremoteerror does not raise!
--HG--
branch : trunk
2007-02-07 19:36:53 +01:00
fijal 337eea81cb [svn r38091] Increase verbosity in case of error. The thing is that we usually don't get
remote error, so let's print it.

--HG--
branch : trunk
2007-02-07 19:25:01 +01:00
hpk 07ee2bc39e [svn r38083] saner tempdir using
--HG--
branch : trunk
2007-02-07 18:58:47 +01:00
fijal 40eb468c71 [svn r38082] Fix reporting (and a test for that)
--HG--
branch : trunk
2007-02-07 17:49:14 +01:00
guido eeedfd2d8f [svn r38079] Typo in some help string, and made fonts of apigen a bit smaller somewhere.
--HG--
branch : trunk
2007-02-07 17:03:19 +01:00
hpk 0b7854d722 [svn r38078] some fixes and test skips for win32 (otherwise all tests
pass for me on win32)

--HG--
branch : trunk
2007-02-07 16:54:50 +01:00
guido d11aec0b42 [svn r38077] Script to run "py.test --apigen" on the py lib (well, can be used on other
projects too) and rsync the results to some remote host/path (by default
codespeak.net, currently to some dir in my home directory, when it's tested
better in practice files will go to the website directory).

--HG--
branch : trunk
2007-02-07 16:36:02 +01:00
guido 5c7fb384bc [svn r38076] Typo.
--HG--
branch : trunk
2007-02-07 16:34:01 +01:00
guido d0861a546f [svn r38075] Adding some print.
--HG--
branch : trunk
2007-02-07 16:33:46 +01:00
hpk 0fb86b2b90 [svn r38074] fix typo
--HG--
branch : trunk
2007-02-07 16:26:27 +01:00
guido 1b43f3c324 [svn r38070] Removed broken anchor from link.
--HG--
branch : trunk
2007-02-07 16:24:11 +01:00
guido b8307eeccc [svn r38068] Grmbl, the failing svn tests turned out to be my fault: copy/paste bug. (when
copying the comment, I must have copied along some lines of code... ):

--HG--
branch : trunk
2007-02-07 16:15:01 +01:00
fijal 4fae2f581d [svn r38051] Fix an option -s contradics -d
--HG--
branch : trunk
2007-02-07 12:34:08 +01:00
guido 318a1c2333 [svn r38044] Now just writing dots when running tests, decreased font size a little of the
class docstring and link.

--HG--
branch : trunk
2007-02-07 02:01:25 +01:00
guido 8ab4468b5c [svn r38043] Changed the way the lazy linking is handled: instead of building the pages
and replacing the links all in memory, pages are now written to disk with
temporary hrefs, which are replaced afterwards.

--HG--
branch : trunk
2007-02-07 01:24:21 +01:00
fijal b91e13d5df [svn r38040] My favorite lazy-lexical-scope-binding error. Still thinking how to make test
for that. Basically - callbacks with lexical scope variables are usually
(depends of coz) called with variables after the for loop has finished.

--HG--
branch : trunk
2007-02-07 00:13:50 +01:00
fijal 3fa9cbe98d [svn r38039] Fix a test
--HG--
branch : trunk
2007-02-07 00:00:24 +01:00
hpk 89a14afcbe [svn r38038] more precise rsyncing
--HG--
branch : trunk
2007-02-06 22:41:11 +01:00
hpk c888d05772 [svn r38037] not showing rsync-items by default, shows that
something is odd regarding the messages, i think
(read the diff, it's a simple change, i guess
we actually want to generate an Event also for
the web reporter at some point, i think,
but we could live with this for the merge IMO)

--HG--
branch : trunk
2007-02-06 22:22:50 +01:00
guido 12b991723e [svn r38036] Some small code cleanups (moved more HTML generation code to html.py).
--HG--
branch : trunk
2007-02-06 22:18:56 +01:00
hpk 563ed75651 [svn r38035] be more precise when reporting about hosts
(enumerate them)

--HG--
branch : trunk
2007-02-06 22:12:36 +01:00
hpk 1d4a46d46a [svn r38034] i think the rsync roots should be shown absolute
--HG--
branch : trunk
2007-02-06 21:47:21 +01:00
fijal ce498a1504 [svn r38033] Fix tests once again
--HG--
branch : trunk
2007-02-06 21:36:03 +01:00
hpk 50c6e97e1c [svn r38032] simplified testing machinery a bit
(you know just have to add an example
and can immediately use it from tests
without adding boilerplate anywhere)

--HG--
branch : trunk
2007-02-06 21:28:07 +01:00
fijal b7b83bf007 [svn r38031] refactor rest of tests
--HG--
branch : trunk
2007-02-06 21:21:09 +01:00
fijal 439b0c2378 [svn r38030] Refactor this test to use new testing service
--HG--
branch : trunk
2007-02-06 21:13:57 +01:00
fijal 8fd09aac24 [svn r38029] Move funcxxxspec out of pylib itself.
--HG--
branch : trunk
2007-02-06 21:05:55 +01:00
hpk 4369d430c8 [svn r38028] make rsync configurable regarding its output
(verbose option and overridable method)

--HG--
branch : trunk
2007-02-06 20:32:21 +01:00
hpk ef43218016 [svn r38027] more precise reporting to the user
--HG--
branch : trunk
2007-02-06 20:15:33 +01:00
fijal 63bbe18a7e [svn r38025] Fix a bit web reporter (still not perfect)
--HG--
branch : trunk
2007-02-06 20:11:12 +01:00
hpk 1945487f4a [svn r38024] avoid that hostmanage.py tests interfere
with the real world (through writing or creating
pytestcache-XXX files), semantic change: upon
gateway initialization the remote path is not
automatically created (this will be done later
by rsync anyway)

--HG--
branch : trunk
2007-02-06 20:06:57 +01:00
fijal 138b0ec79a [svn r38023] Report HostRSyncing only in case where rsyncing is really performed.
--HG--
branch : trunk
2007-02-06 20:01:07 +01:00
fijal 540736b493 [svn r38022] be a bit more verbose before rsync.
--HG--
branch : trunk
2007-02-06 19:57:14 +01:00
fijal f69c77a7ab [svn r38021] Simple refactoring to be a bit more verbose when starting.
--HG--
branch : trunk
2007-02-06 19:44:16 +01:00
guido 3690e384a9 [svn r38005] Made that source snippets are now shown in two tables, to allow selecting
the source without the line numbers, decreased font size a bit, made that the
Page class can be passed in from the outside (build() method) to more easily
allow customization of the layout and pages.

--HG--
branch : trunk
2007-02-06 14:19:16 +01:00
fijal 410e00320d [svn r38000] Fix web reporter
--HG--
branch : trunk
2007-02-06 12:15:06 +01:00
fijal fef23c34cd [svn r37994] Imrpovement of host rsync reporting. Additionally it increased stability for no particular reason
--HG--
branch : trunk
2007-02-06 11:31:08 +01:00
cfbolz 157a77ef0a [svn r37992] have real definitions (yes, the empty lines make a difference). rest is strange.
--HG--
branch : trunk
2007-02-06 00:56:14 +01:00
cfbolz d45b45a74e [svn r37991] remove colons and change the subsecion title
--HG--
branch : trunk
2007-02-06 00:53:46 +01:00
fijal eb01cfa78e [svn r37990] Fix reporting (and a test for that)
--HG--
branch : trunk
2007-02-06 00:53:29 +01:00
cfbolz 9b6787782d [svn r37989] add an overview over py.tests command-line options
--HG--
branch : trunk
2007-02-06 00:50:11 +01:00
hpk 7bc4b6a80e [svn r37988] adding a bit to the test (but the code is already correct)
--HG--
branch : trunk
2007-02-06 00:21:33 +01:00
cfbolz a430e2b8f5 [svn r37987] split the py.test docs into implementation and customization docs and normal
user docs.

--HG--
branch : trunk
2007-02-06 00:18:22 +01:00
fijal cc0dfc1c3c [svn r37986] Add a repr if we have str
Add delete keyword to parent

--HG--
branch : trunk
2007-02-06 00:09:05 +01:00
hpk 4af00f6682 [svn r37985] make sure that host.initgateway() will always
have the other side chdir()ed to home,
thus generalizing 37971 with respect to platform
support and making it independent from gateway
implementation details.

--HG--
branch : trunk
2007-02-05 23:46:31 +01:00
guido 102409a846 [svn r37984] Moved all the apigen information into one document and adjusted to match the
current situation.

--HG--
branch : trunk
2007-02-05 23:37:23 +01:00
fijal 1c287a2546 [svn r37971] This was there for a reason that we don't want to have different pylib loaded (there was even test for that, apparently killed)
--HG--
branch : trunk
2007-02-05 16:11:05 +01:00
hpk 845357dcba [svn r37960] refactored the tests and added tests and code
for disallowing to send() twice without
adding new targets.

--HG--
branch : trunk
2007-02-05 13:55:31 +01:00
hpk 11591c3c4f [svn r37950] * add and document dist_rsync_ignore option to ignore
files and directories for rsyncing

--HG--
branch : trunk
2007-02-05 02:14:17 +01:00
hpk 03dc73b195 [svn r37949] fix test for nocapturing output runs (and --pdb)
--HG--
branch : trunk
2007-02-05 01:47:43 +01:00
hpk 99661844dd [svn r37948] fix for win32
--HG--
branch : trunk
2007-02-05 01:36:00 +01:00
hpk bdf3e919c9 [svn r37947] added _gethomedir() helper to get at homedirectory
--HG--
branch : trunk
2007-02-05 01:35:40 +01:00
hpk 0b9b0909bf [svn r37946] setup/teardown hosts correspond
--HG--
branch : trunk
2007-02-05 01:23:14 +01:00
hpk c93cfc1e2b [svn r37945] make the hostmanager get at the hosts itself
(or you can pass it in a custom list of hosts)

--HG--
branch : trunk
2007-02-05 01:14:11 +01:00
hpk b68bc5b373 [svn r37938] rename report.py to repevent.py (report events)
also to ease the completion ambiguity a bit
(and to avoid having to read "reporter" and "report"
next to each other)

--HG--
branch : trunk
2007-02-05 00:34:23 +01:00
hpk fb2613135b [svn r37936] minor cleanups
--HG--
branch : trunk
2007-02-05 00:21:35 +01:00
hpk e8bdb867fa [svn r37935] remove done_dict and according experimental
code for re-scheduling (i guess)
fijal: in the diff you'll find a XXX fijal,
i changed the meaning of a test, wasn't sure
about it. can you check?

--HG--
branch : trunk
2007-02-05 00:12:12 +01:00
guido 0292420920 [svn r37931] Made that the __init__ method is the first method displayed.
--HG--
branch : trunk
2007-02-04 22:49:44 +01:00
guido 27e05e257a [svn r37930] Docstrings.
--HG--
branch : trunk
2007-02-04 22:47:03 +01:00
guido 7034b507a3 [svn r37928] Updated test (oops).
--HG--
branch : trunk
2007-02-04 22:21:35 +01:00
guido a78ad64f9d [svn r37927] Some docstrings.
--HG--
branch : trunk
2007-02-04 22:11:56 +01:00
guido a1c7ab69f9 [svn r37926] Small visual tweaks.
--HG--
branch : trunk
2007-02-04 22:11:43 +01:00
guido 16f9103a0a [svn r37922] Made that properties (class attributes) are displayed, fixed the links in the
menubar.

--HG--
branch : trunk
2007-02-04 16:47:33 +01:00
hpk a128ecb8cf [svn r37919] use a less ambigous test package name
--HG--
branch : trunk
2007-02-04 16:42:55 +01:00
hpk a7de613ed0 [svn r37916] dist_rsync_roots: py lib itself only needs itself
--HG--
branch : trunk
2007-02-04 15:42:50 +01:00
hpk beb3a12700 [svn r37915] sanity checks
--HG--
branch : trunk
2007-02-04 15:40:46 +01:00
hpk e4f5a2259c [svn r37914] cleaner test setup
--HG--
branch : trunk
2007-02-04 15:36:42 +01:00
guido 98b4dcf155 [svn r37913] Some more cleanups in HTML generation, fixed support for docstrings in
namespaces, in order to do this I had to change the way objects are retrieved:
instead of getting them from the DSA I now walk the package tree, small change
in apigen.py: to allow re-using the get_documentable_items function I split it
up in a generic and a specific part.

--HG--
branch : trunk
2007-02-04 15:35:28 +01:00
guido 7852ead1fe [svn r37912] Made some small changes to the initpkg mechanism so docstrings are, if
provided in the exportdefs, copied to the namespaces (from whereever they
come), and added docstrings to all exposed namespaces (except for _thread for
now).

--HG--
branch : trunk
2007-02-04 15:27:10 +01:00
hpk 4791dd6501 [svn r37909] a much much much larger refactoring than i originally
intended at this point:

* HostManager and HostRSync are now acting
  more locally, also easier to test.

* HostInfo deals with setting up gateways now

* HostManager, HostRSync and HostInfo are
  all tested now in test_hostmanage.py
  (and do not involve a full startup of RSessions)

* for rsyncing, the original directory structure
  (relative to config.topdir) is preserved on the
  other side, this makes "dist_rsync_roots" relatively
  clean now (but it doesn't pick up things on the fly,
  only initialises at the beginning)

* added lots of tests

* removed more occurences of pkgdir

* streamlined and simplified some tests

* removed lots of tests that do not appear to test
  specifically enough (and caused trouble for
  the refactoring)

* removed lots of (but not all, i guess) test-specific
  functionality in hostmanage.py and a bit in rsession.py

* removed HostOptions() in favour of rather directly
  accessing config values

--HG--
branch : trunk
2007-02-04 15:05:01 +01:00
hpk f2b38db33a [svn r37908] fixing test
--HG--
branch : trunk
2007-02-04 14:54:10 +01:00
arigo 04cf3cdfa0 [svn r37901] make_numbered_dir(): in a fork() situation, only the last process should remove
the .lock, otherwise the other processes run the risk of seeing their temporary
dir disappear.  For now we remove the .lock in the parent only (i.e. we assume
that the children finish before the parent).

This is needed for long-running pypy translate.py processes using
--fork-before.

--HG--
branch : trunk
2007-02-04 14:01:21 +01:00
arigo f13381e3f9 [svn r37899] Try to print the exception before dying.
--HG--
branch : trunk
2007-02-04 13:31:24 +01:00
hpk 41526ad622 [svn r37898] provide a high-level helper for getting
at a pathlist specified in a conftest (and
the paths can be relative to the conftest.py file they
are contained in)

--HG--
branch : trunk
2007-02-04 13:29:26 +01:00
hpk 95f38694cb [svn r37886] hum, i thought i had refactored this option name already ...
also the wrong name does not even cause a test failure. odd.

--HG--
branch : trunk
2007-02-03 21:35:14 +01:00
hpk ee40787bf1 [svn r37885] adding docstrings, stripping non-used names from import
--HG--
branch : trunk
2007-02-03 21:33:12 +01:00
fijal 309f3e2cec [svn r37884] Few missing Skipped
--HG--
branch : trunk
2007-02-03 21:15:55 +01:00
fijal f5308aba2d [svn r37881] Some other stuff goes private
--HG--
branch : trunk
2007-02-03 19:52:21 +01:00
hpk f9b8a810cd [svn r37880] removing public API from test.config (only one rather
internal usage, anyway)

--HG--
branch : trunk
2007-02-03 19:50:35 +01:00
fijal e88a6c5fc3 [svn r37879] s/tryiter/_tryiter/
--HG--
branch : trunk
2007-02-03 19:44:34 +01:00
fijal 1dca2498fb [svn r37877] Intermediate checkin for some privatising of attributes
--HG--
branch : trunk
2007-02-03 19:29:24 +01:00
fijal 46a91b3705 [svn r37876] s/get_collector_trail/_get_collector_trail/
--HG--
branch : trunk
2007-02-03 19:00:04 +01:00
hpk 9f8035656e [svn r37872] StdCaptureFD and StdCapture now try
to take care of stdin in a mostly uniform way.

--HG--
branch : trunk
2007-02-03 14:57:25 +01:00
hpk d6d7eb8704 [svn r37866] small cleanup of ground std* descriptors.
--HG--
branch : trunk
2007-02-03 13:31:47 +01:00
fijal f5d51fb9e0 [svn r37865] more descriptive skip msg
--HG--
branch : trunk
2007-02-03 13:27:48 +01:00
fijal 4db6f4144a [svn r37864] Add a (failing) test about version URL available
--HG--
branch : trunk
2007-02-03 13:25:20 +01:00
fijal 0eb8d103b1 [svn r37863] Ooops, didn't meant to check that in.
--HG--
branch : trunk
2007-02-03 13:15:23 +01:00
fijal 9b62f2290c [svn r37862] Move Skipped/Failed/Passed out of public namespace
--HG--
branch : trunk
2007-02-03 13:14:46 +01:00
fijal 2fe1fa07ff [svn r37861] Skip compat
--HG--
branch : trunk
2007-02-03 13:13:18 +01:00
hpk 1ab92ac3be [svn r37859] separating tests into two files
--HG--
branch : trunk
2007-02-03 12:32:45 +01:00
hpk 90188b1256 [svn r37855] a first rough list for py.test namespace cleanup
--HG--
branch : trunk
2007-02-03 12:18:25 +01:00
fijal 4ffda926ab [svn r37850] Split methods a bit to smaller parts.
--HG--
branch : trunk
2007-02-03 11:26:23 +01:00
fijal 026c2fa0bc [svn r37838] Privatize attributes of rsync.py
--HG--
branch : trunk
2007-02-03 00:32:35 +01:00
guido 66cf52a6e2 [svn r37837] A bit of cleanup of the HTML generation: some of the layout related stuff is
moved to the classes in the H namespace. This hopefully (when done, more can
definitely be done later) seperates the HTML generation better from the
presentation-related code.

--HG--
branch : trunk
2007-02-03 00:29:01 +01:00
hpk 923c65f13e [svn r37835] some updates to TODO items
--HG--
branch : trunk
2007-02-03 00:10:38 +01:00
hpk 04c3bcd074 [svn r37834] reworked execnet intro to more explicitely state
the main (high-level) features.

--HG--
branch : trunk
2007-02-03 00:09:29 +01:00
guido c4a94921c6 [svn r37833] Oops, was using py.path.local('.') instead of py.magic.autopath().dirpath()
to find the scripts to copy...

--HG--
branch : trunk
2007-02-02 22:47:21 +01:00
hpk 8c2ef5cb22 [svn r37831] improving more docstrings
--HG--
branch : trunk
2007-02-02 22:01:27 +01:00
hpk 2c0e4bc798 [svn r37830] better RSync docstring
--HG--
branch : trunk
2007-02-02 21:57:59 +01:00
hpk e0a1612d51 [svn r37824] fix typo
--HG--
branch : trunk
2007-02-02 20:59:10 +01:00
hpk 59264d57ae [svn r37822] added lots of docstrings, general cleanup
--HG--
branch : trunk
2007-02-02 20:57:47 +01:00
hpk 0600b1aa36 [svn r37815] path.txt: showing a bit more for string methods
update TODO

--HG--
branch : trunk
2007-02-02 19:27:22 +01:00
guido 37a4bfd5ad [svn r37812] Using style.css from the doc directory for apigen now, with some overrides in
a seperate stylesheet. Cleaned up the stylesheet and script handling a bit:
stylesheets and scripts are now defined in the LayoutPage class (where they're
easily customizable). Also removed some old unused code and moved the H class
(html related) stuff to its own file. The idea is that this will become the
place where all the layout is defined.

--HG--
branch : trunk
2007-02-02 16:49:58 +01:00
hpk 24539c3797 [svn r37790] fix Ssh remote sanitzing of FD 1 and 0 and factor
out the code in a function

--HG--
branch : trunk
2007-02-02 02:44:31 +01:00
hpk 084460ffd4 [svn r37789] small updates and streamlining of docs
--HG--
branch : trunk
2007-02-02 02:22:43 +01:00
hpk 443a0b4614 [svn r37788] guido, unless i am missing something there seem to be two
problems with your making Channel's public: you didn't import
it (py.__.* is not lazy) and it fails the apigen tests even
after fixing it.

--HG--
branch : trunk
2007-02-02 02:18:06 +01:00
hpk 272812fd76 [svn r37787] more precision at shutdown: first remove
from the sendqueue, then trigger the queue
to shutdown. (This is an attempt to get
rid of the still appearing "exception in thread"
messages)

--HG--
branch : trunk
2007-02-02 02:07:37 +01:00
hpk 0c55062e74 [svn r37786] improve docstring
--HG--
branch : trunk
2007-02-02 02:05:31 +01:00
hpk 7a718ca2e7 [svn r37785] privatizing some more attributes
--HG--
branch : trunk
2007-02-02 02:02:55 +01:00
hpk b4919c8102 [svn r37784] privatizing some attributes
--HG--
branch : trunk
2007-02-02 01:34:40 +01:00
hpk c6c9fd326c [svn r37783] puh, it took me quite a while to find out why
ssh-stdout-confusion tests involving "os.write(1, ...)"
were passing on earlier revisions: in 35888
a test name got fixed, but when you specify "-S somehost"
then this will hang, so i am skipping the test for
now, this never worked.

--HG--
branch : trunk
2007-02-02 01:32:24 +01:00
guido b8bb733778 [svn r37782] Changed the checking in resolve_linkrole() so that instead of the apigen
results (the directory with HTML files) it uses the py lib object tree and
source tree to find out whether links are valid.

--HG--
branch : trunk
2007-02-02 01:00:50 +01:00
guido 5bf17c3b62 [svn r37781] Added 'execnet.channel.Channel' object to the to-be-documented items.
--HG--
branch : trunk
2007-02-02 00:58:57 +01:00
hpk 3634701598 [svn r37780] simplifying code a bit (but test_confusion* for Ssh still fails)
--HG--
branch : trunk
2007-02-02 00:57:55 +01:00
fijal cf7e2d7c28 [svn r37779] Fix and a test for disappearing files.
--HG--
branch : trunk
2007-02-02 00:40:49 +01:00
guido 23aeccc8c8 [svn r37776] Fixed some problems with the relative link checker (was using the wrong base
path for checks), fixed links in the documents.

--HG--
branch : trunk
2007-02-02 00:12:49 +01:00
guido 80a0045805 [svn r37774] Adding support for checking generated API links (for link roles).
--HG--
branch : trunk
2007-02-01 23:30:51 +01:00
cfbolz df0736db08 [svn r37773] typo
--HG--
branch : trunk
2007-02-01 23:27:51 +01:00
hpk 7fd122a4c1 [svn r37772] have both capturings have the same done/reset semantics
(should also fix a buildcmodule related problem, e.g. for
greenlets)

--HG--
branch : trunk
2007-02-01 22:52:42 +01:00
hpk 31f4c194e8 [svn r37770] remove very old try at doing svn bindings
--HG--
branch : trunk
2007-02-01 22:18:40 +01:00
hpk e5d7fcd0d8 [svn r37769] minor clarifi
--HG--
branch : trunk
2007-02-01 22:16:10 +01:00
guido 024608bdcd [svn r37767] Fixed Windows issues in doctests.
--HG--
branch : trunk
2007-02-01 21:28:21 +01:00
hpk 17754c6fd9 [svn r37766] unifying non-FD and FD capturing some more
(could be more, but at least the APIs start
to feel the same)

--HG--
branch : trunk
2007-02-01 21:26:27 +01:00
guido 9ddca27edc [svn r37765] Was still getting filenames for source files from code objects, so adding more
defensiveness, and made that the 'capture' object is passed over to the builder
instances (to help debugging, currently not used).

--HG--
branch : trunk
2007-02-01 21:10:48 +01:00
guido a2359e0554 [svn r37752] Added some more code examples.
--HG--
branch : trunk
2007-02-01 16:58:42 +01:00
hpk f21df1b455 [svn r37751] fix two other places that used capturing
(although the greenlet fix is not really
related, but i first saw it now on win32)

--HG--
branch : trunk
2007-02-01 16:58:10 +01:00
hpk 3ad6642a49 [svn r37745] fixing and adding to docstring
--HG--
branch : trunk
2007-02-01 16:35:29 +01:00
hpk c413f11daf [svn r37743] ah, there was yet another version of capturing hiding
--HG--
branch : trunk
2007-02-01 16:23:51 +01:00
hpk df8ff8144c [svn r37742] fix reference
--HG--
branch : trunk
2007-02-01 16:23:27 +01:00
hpk b706ec2f95 [svn r37741] monster checking for
* unifying IO capturing methods
* py.io.StdCapture and py.io.StdCaptureFD
  (and both have a classmethod 'call' that is
  a shortcut for capturing output while
  executing a function)
* removing lots of duplicate code
* providing some examples in py/doc/io.txt

at least tests on win32 and linux seem
to pass all for me.

--HG--
branch : trunk
2007-02-01 16:20:39 +01:00
guido d9572239a8 [svn r37739] Made that only the first two lines of a source file are examined for the
encoding.

--HG--
branch : trunk
2007-02-01 15:57:34 +01:00
guido ec734026cc [svn r37738] Fixed problem probably caused by removing some comment or something...
--HG--
branch : trunk
2007-02-01 15:55:23 +01:00
hpk 16fae5ed73 [svn r37736] cosmetic docstring change
--HG--
branch : trunk
2007-02-01 15:35:07 +01:00
guido 646d4f93e1 [svn r37733] Removed two rather useless methods that just delegated to methods on the
underlying object, in favour of calling the underlying object's methods
directly (py.io.OutErrCapture.writeorg*).

--HG--
branch : trunk
2007-02-01 15:13:59 +01:00
guido 9f491f2058 [svn r37729] Added some code to py.io.FDCapture and py.io.OutErrCapture to allow writing
to the original (patched) file descriptor. Also made that the capturing object
is passed to apigen.py's build() function (from rsession.py), which uses the
new methods to print progress information.

--HG--
branch : trunk
2007-02-01 14:56:31 +01:00
fijal 3f31ed5742 [svn r37723] Add a test
--HG--
branch : trunk
2007-02-01 12:59:47 +01:00
fijal ee72091783 [svn r37721] Fix. !Tests needed!
--HG--
branch : trunk
2007-02-01 12:50:29 +01:00
fijal f4b4f68b40 [svn r37720] Kill dead import
--HG--
branch : trunk
2007-02-01 12:28:45 +01:00
hpk 661d984aec [svn r37703] adding references to path and code documentation
--HG--
branch : trunk
2007-01-31 23:56:18 +01:00
hpk 3e91580231 [svn r37701] note on removal of compat.TestCase
--HG--
branch : trunk
2007-01-31 23:44:03 +01:00
hpk 0945e7668a [svn r37700] refer to experimental gateway path code
for substantiating future directions.

--HG--
branch : trunk
2007-01-31 23:43:32 +01:00
hpk ba2dcf16bd [svn r37699] removing py._dist export (only accessed from setup.py
and py/bin/_makepyrelease.py)

--HG--
branch : trunk
2007-01-31 23:23:24 +01:00
hpk dbb88cdb75 [svn r37698] waiting even a bit longer for loop-on-failing
--HG--
branch : trunk
2007-01-31 23:20:33 +01:00
hpk f915de1992 [svn r37696] removing py.test.compat.TestCase - it's small
code but nobody uses it i think and there is
no documentation.

--HG--
branch : trunk
2007-01-31 22:55:30 +01:00
hpk 7970591813 [svn r37693] Some considerations regarding the experimental
Gateway/Remote Path implementation code.
Also making it "py.__." importable but
not advertising it for 0.9 at all.
It's an interesting feature for 1.0 :)

--HG--
branch : trunk
2007-01-31 21:34:29 +01:00
guido 58eace43f9 [svn r37674] Added document 'code.txt' that describes py.code, added docstrings to py.code
public items.

--HG--
branch : trunk
2007-01-31 16:29:18 +01:00
hpk 65f51efa55 [svn r37664] some streamlining, additions and "de-marketing" :)
and adding some XXX

--HG--
branch : trunk
2007-01-31 12:49:25 +01:00
hpk 9fe8e7ca65 [svn r37661] fixing this script (IMO it was broken if you provided arguments)
--HG--
branch : trunk
2007-01-31 12:27:25 +01:00
hpk bd71dff595 [svn r37647] make the example independent from the installed python binaries
--HG--
branch : trunk
2007-01-31 00:46:20 +01:00
arigo 89a4750535 [svn r37646] Wording, and missing attribute in the greenlet documentation.
--HG--
branch : trunk
2007-01-31 00:29:45 +01:00
hpk dcafd4cd60 [svn r37645] adding an example for execnet (passes doctest)
--HG--
branch : trunk
2007-01-31 00:23:59 +01:00
cfbolz a05708848a [svn r37644] typo
--HG--
branch : trunk
2007-01-31 00:20:50 +01:00
hpk 97346c8a5a [svn r37643] stroke the historical notes, and streamlined
various parts of execnet documentation,
added some api references.

--HG--
branch : trunk
2007-01-31 00:13:49 +01:00
arigo 6aaca64290 [svn r37642] issue40 resolved
Thanks ghazel.  I fixed this by directly capturing ts_current in a local
variable instead of reloading it.  I also reviewed the code a bit and
found another place where ts_current could be used out of date.

--HG--
branch : trunk
2007-01-31 00:07:48 +01:00
hpk e721d85278 [svn r37641] removing py.path.extpy after all
--HG--
branch : trunk
2007-01-30 23:22:15 +01:00
guido e7c684eb37 [svn r37640] Added first bits of a document about py.path.
--HG--
branch : trunk
2007-01-30 23:01:04 +01:00
guido d3c2f5c7b1 [svn r37639] Not sure why this was here... :|
--HG--
branch : trunk
2007-01-30 23:00:33 +01:00
guido acf54574c4 [svn r37638] Re-enabled the tests on win32
--HG--
branch : trunk
2007-01-30 21:51:57 +01:00
guido 307a727a7e [svn r37637] Fixed Windows path problems for apigen; test_apigen_functional.py now works (couldn't test with the py lib itself, though, as it wants to build greenlets and i don't have a suitable c compiler installed).
--HG--
branch : trunk
2007-01-30 21:45:18 +01:00
fijal c432765556 [svn r37631] Kill unnecessarry cache
--HG--
branch : trunk
2007-01-30 18:55:08 +01:00
fijal 3630e7fcd3 [svn r37624] Slightly hackish way to put all tracing calls as low as possible. This
should kill unnecessary frames. Right now tracing is done only for
py.test.Function objects, I don't know what to do with sth else, let's
leave it alone.

--HG--
branch : trunk
2007-01-30 17:59:32 +01:00
fijal f65d6e9d35 [svn r37623] Get rid of last frame if possible (the frame containing start_tracing should
not be there, unless this is the last frame)

--HG--
branch : trunk
2007-01-30 17:58:11 +01:00
fijal d80bbf4a68 [svn r37622] Don't use previous versions in future examples
--HG--
branch : trunk
2007-01-30 17:56:58 +01:00
fijal ff7e89a145 [svn r37621] all tests works for me
--HG--
branch : trunk
2007-01-30 17:55:04 +01:00
fijal 1974e5ecf6 [svn r37620] ensure 2.5 compatibility
--HG--
branch : trunk
2007-01-30 17:54:14 +01:00
guido e905f71e72 [svn r37616] All code snippets are colored now, also properly fixed hiding of _* names
in the navigation.

--HG--
branch : trunk
2007-01-30 17:29:33 +01:00
hpk d435873e03 [svn r37615] skip this test on windows, it should work but doesn't
and it's not too important (apigen does not fully
run on win32 because of LSession not working there)

--HG--
branch : trunk
2007-01-30 17:28:43 +01:00
guido 85854514b7 [svn r37610] Stack trace code snippets are now syntax colored.
--HG--
branch : trunk
2007-01-30 16:44:30 +01:00
guido e625497c5f [svn r37609] Oops, forgot to check this in: update to deal with change in py.xml.html.
--HG--
branch : trunk
2007-01-30 16:43:00 +01:00
guido 1ac5c69420 [svn r37608] Added some code to make sure 'inline' elements aren't indented (gotta love
'ignorable' whitespace).

--HG--
branch : trunk
2007-01-30 16:42:19 +01:00
guido 2f8325e277 [svn r37602] Fixed support for files ending on a comment rather than a newline, fixed some
unicode() call so it's not done on objects that are already unicode.

--HG--
branch : trunk
2007-01-30 15:46:57 +01:00
hpk 0b985318fa [svn r37599] fixing a windows-error: i believe that most strings
passed into htmlgen.deindent() actually have
a normalized '\n' line-ending already (e.g. if they
come from python docstrings).  So the caller
now needs to specify otherwise.

--HG--
branch : trunk
2007-01-30 15:08:47 +01:00
hpk e96e4f61c7 [svn r37598] removing broken tkinter session support ahead of the
0.9 release (might be re-introduced later)

--HG--
branch : trunk
2007-01-30 15:02:28 +01:00
hpk 1f0835df15 [svn r37596] bah, waiting longer also in py-trunk
--HG--
branch : trunk
2007-01-30 14:44:52 +01:00
guido 45868fe506 [svn r37594] Fixed unicode issues in apigen/htmlgen.py and apigen/source, moved some methods
out of HTMLDocument and added support for finding out the encoding of a Python
file in order to accomplish that (both in source/html.py), fixed some minor
issues (items with a name starting with _ are now hidden from nav, fixed
indentation issue in nav) in htmlgen.py.

--HG--
branch : trunk
2007-01-30 14:24:27 +01:00
guido c2e1510f86 [svn r37582] Updated mock-up function return value.
--HG--
branch : trunk
2007-01-30 11:45:46 +01:00
guido bef3ad84ce [svn r37579] Made that the package name can be set when using from_dict() to fill a
DocStorage.

--HG--
branch : trunk
2007-01-30 11:34:08 +01:00
fijal c1e6116de5 [svn r37555] update
--HG--
branch : trunk
2007-01-29 18:14:27 +01:00
fijal 7759bb404f [svn r37554] add XXX
--HG--
branch : trunk
2007-01-29 18:12:17 +01:00
fijal 8a4e21ecd5 [svn r37553] Skip if boxed
--HG--
branch : trunk
2007-01-29 18:11:13 +01:00
guido fe3a71994a [svn r37545] Moved get_star_import_tree out of the DocStorage class, created 'pkg_to_dict'
function in docstorage.py and using that from apigen.py (to later simplify
py.test integration, and to improve testability). Simplified 'deindent()' a
bit, made the wrap_page use the filenames from the stylesheeturl and the
scripturls instead of having them hard-coded, some minor HTML/CSS changes.

--HG--
branch : trunk
2007-01-29 17:11:15 +01:00
guido 06cbe63616 [svn r37540] Nicer formatting of docstrings (de-indented and such), fixed problem getting
to frame source (IOError that popped up when building the py lib's api docs)
in description.py.

--HG--
branch : trunk
2007-01-29 15:20:31 +01:00
fijal 02abf0ee5d [svn r37535] update on that
--HG--
branch : trunk
2007-01-29 14:10:51 +01:00
guido 853de83311 [svn r37534] Some minor visual modifications for stack traces, fixed check for
py.code.Source object filenames.

--HG--
branch : trunk
2007-01-29 14:09:33 +01:00
fijal acfbbcb7ff [svn r37533] Make distribution working with custom conftests at exact levels. This
is very explicit - dist_rsyncroots works only in that conftest directory.

--HG--
branch : trunk
2007-01-29 14:06:19 +01:00
guido e921ad8af9 [svn r37531] Removing try/except to make debugging a little bit easier.
--HG--
branch : trunk
2007-01-29 13:53:52 +01:00
hpk ad127323e3 [svn r37502] unify dist_* options and give dist_rsync_roots more precision:
you now specify relative paths (relative to the conftest.py
where a dist_rsync_root setting resides) or absolute paths.

--HG--
branch : trunk
2007-01-28 22:54:12 +01:00
hpk 216919d612 [svn r37501] rename for clarity
--HG--
branch : trunk
2007-01-28 21:37:30 +01:00
hpk 20222ec57b [svn r37500] postponing generalizing of host specifications for 0.9
--HG--
branch : trunk
2007-01-28 21:25:48 +01:00
hpk ae11e91791 [svn r37499] concreter error message
--HG--
branch : trunk
2007-01-28 21:25:11 +01:00
hpk 12d1da1194 [svn r37498] bah, my local config but i want to have it committed to
get rid of the "M" state, ehem.

--HG--
branch : trunk
2007-01-28 21:09:02 +01:00
hpk df3448c6f9 [svn r37494] the start of factoring out common and unified
host handling within py.test

--HG--
branch : trunk
2007-01-28 18:53:43 +01:00
cfbolz cfc0ca32f3 [svn r37481] new attempt :-(
--HG--
branch : trunk
2007-01-28 18:16:43 +01:00
hpk e991bf21bd [svn r37478] refactored/streamlined tests slightly
i think svn testing needs some more refinements
(not before 0.9)

--HG--
branch : trunk
2007-01-28 17:56:42 +01:00
cfbolz 1e44038941 [svn r37477] use relative paths to try to make the py-lib both work in paths that have
quotable characters _and_ with some versions of latex that don't like quotes in
\input. let's see whether it works...

--HG--
branch : trunk
2007-01-28 17:34:52 +01:00
hpk 1d3519bfe0 [svn r37465] * all Sessions now have fixoptions()
* added some tests for implied and conflicting options
* make all Session objects inherit from the base session
* small cleanups with respect to test setup
* separate tests a bit

--HG--
branch : trunk
2007-01-28 14:25:03 +01:00
hpk 15c1ebe506 [svn r37463] test_get_initpkg_star_items() fails for me
when run as part of the whole py lib tests,
succeeds when ran as a single test.
Pruning sys.modules fixes this (but i am
not sure why the tracer depends on seeing
the import happen)

--HG--
branch : trunk
2007-01-28 12:02:19 +01:00
hpk de9fd5ecef [svn r37462] allow the remote side to run in verbose mode
--HG--
branch : trunk
2007-01-28 12:00:17 +01:00
hpk b5d79a847b [svn r37461] skip these tests on windows (some reliances on unix-paths
and i don't think apigen can run on windows anyway at the moment)

--HG--
branch : trunk
2007-01-28 11:42:13 +01:00
hpk a938384607 [svn r37460] these tests rely on exact formatting, so skipping them again
(fail for me on pypy2)

--HG--
branch : trunk
2007-01-28 11:32:01 +01:00
hpk 6838180187 [svn r37459] fix socketgateway test to run on both win32 and linux
--HG--
branch : trunk
2007-01-28 11:14:22 +01:00
hpk e64d602cd2 [svn r37458] try to only rsync the py lib, not the dirpath() of it
--HG--
branch : trunk
2007-01-28 10:07:22 +01:00
hpk 9e7886c59b [svn r37457] explicitely shutdown the gateway for the remote session
after each run.

--HG--
branch : trunk
2007-01-28 09:49:28 +01:00
hpk dad2da4583 [svn r37456] some small adjustments/cleanups regarding intiialisation
--HG--
branch : trunk
2007-01-28 09:48:59 +01:00
hpk c736976568 [svn r37455] added a sample conftest.py to run windows tests remotely,
note the module docstring.

--HG--
branch : trunk
2007-01-28 09:46:34 +01:00
guido 37803778c9 [svn r37453] Changed test a bit to avoid issues on non-UNIX platforms.
--HG--
branch : trunk
2007-01-27 23:50:49 +01:00
hpk b677355804 [svn r37450] skip auto-import checks of directive.py because it requires docutils
--HG--
branch : trunk
2007-01-27 21:15:21 +01:00
hpk 06f68d9fb7 [svn r37449] fix failures in case of docutils not being installed
(related to importing 'py.__.rest.directive')

--HG--
branch : trunk
2007-01-27 21:11:26 +01:00
hpk 181f6cde23 [svn r37447] config._reparse() from current dir can drag in conftest.py
files (happened to me because i had two py lib checkouts)

--HG--
branch : trunk
2007-01-27 20:24:41 +01:00
hpk 8f540fe7c6 [svn r37446] don't try this on windows
--HG--
branch : trunk
2007-01-27 20:22:23 +01:00
hpk 780e715395 [svn r37445] use suprocess module to start socketserver subprocess
--HG--
branch : trunk
2007-01-27 20:13:17 +01:00
hpk 6d403d4573 [svn r37444] a try at a wrapping loop_socketserver.py
that restarts the actual socketserver.py

--HG--
branch : trunk
2007-01-27 19:57:05 +01:00
hpk 3d70646122 [svn r37443] slightly re-organizing RemoteTerminalSession for
easier subclassing.

--HG--
branch : trunk
2007-01-27 19:41:39 +01:00
fijal a1171a8726 [svn r37442] update
--HG--
branch : trunk
2007-01-27 18:33:41 +01:00
guido 00812c46f9 [svn r37439] Sorry, cfbolz, seems the print to stderr breaks some test... :|
--HG--
branch : trunk
2007-01-27 16:40:25 +01:00
guido fd40b43cdf [svn r37438] Fiddle-fixed --rest, although it works now some cleanups would be nice...
Cleaned up the tests a bit and re-enabled some (sucky tests are better than
no tests at all, I guess... :| ), re-enabled a debug print after complaints
from cfbolz ;) but this time it prints to stderr (to avoid ReST pollution).

--HG--
branch : trunk
2007-01-27 16:37:43 +01:00
guido 7ebd7ec888 [svn r37437] Made stuff a bit more robust by converting non-strings to strings in some
places.

--HG--
branch : trunk
2007-01-27 16:36:20 +01:00
guido 241ef0ff4a [svn r37435] Removing debug print (ended up in the ReST).
--HG--
branch : trunk
2007-01-27 15:29:17 +01:00
guido 58079397a2 [svn r37434] Fixed bug in add() that made that the to-be-added item didn't get added (and
yes, I've added a test now ): ), made some error message a bit clearer.

--HG--
branch : trunk
2007-01-27 15:11:52 +01:00
fijal f1b4e14f09 [svn r37433] Add a helper which returns value + path of a dir where value was found
--HG--
branch : trunk
2007-01-27 15:01:45 +01:00
guido 50a0a04bd2 [svn r37432] Some updates on stuff I've worked on, fixed ReST.
--HG--
branch : trunk
2007-01-27 14:33:40 +01:00
guido 39f357b272 [svn r37431] Fixed problem that made that the wrong package was imported when ran after
test_apigen_example.

--HG--
branch : trunk
2007-01-27 14:26:57 +01:00
guido c96eb10efd [svn r37430] Fixed test, was depending on dict order and values had changed.
--HG--
branch : trunk
2007-01-27 14:20:56 +01:00
fijal 23681b8059 [svn r37429] Ugh, revert.
--HG--
branch : trunk
2007-01-27 14:12:23 +01:00
hpk c32d3f8673 [svn r37428] added a note about dist_rsyncroots semantics
--HG--
branch : trunk
2007-01-27 14:09:09 +01:00
fijal 6c428bafbf [svn r37427] Kill the last occurencies of pkgdir
--HG--
branch : trunk
2007-01-27 14:01:58 +01:00
guido 9539e49743 [svn r37425] Fixed Code.__ne__() (wrong function sig, missing 'other' argument).
--HG--
branch : trunk
2007-01-27 13:29:39 +01:00
fijal d929f633a7 [svn r37411] Fix a bit rest and test_rest. Note that actually these tests are
testing anything from time to time, need closer look.

--HG--
branch : trunk
2007-01-26 23:35:20 +01:00
fijal e3dfe80856 [svn r37409] Fix the test
--HG--
branch : trunk
2007-01-26 22:56:50 +01:00
fijal f098c2d353 [svn r37408] Kill two unnecessary tests now.
--HG--
branch : trunk
2007-01-26 22:54:52 +01:00
fijal ac977c865d [svn r37407] Unskip two tests.
--HG--
branch : trunk
2007-01-26 22:46:11 +01:00
guido 3c08f6a614 [svn r37395] Fixed some small issues in source nav, turned namespace_tree into an instance
var (finally! :), changed the api nav so it now shows the full tree with the
current item unfolded + siblings of itself and all parents (+ children if it's
a namespace item).

--HG--
branch : trunk
2007-01-26 16:34:28 +01:00
guido b67ef229df [svn r37383] Added call stacks, made that method pages aren't built at all anymore, made
that build_namespace_view isn't called for anything but namespaces anymore,
made that parts of documents are hidden at first (with a link to 'open' them).

--HG--
branch : trunk
2007-01-26 14:01:27 +01:00
fijal c72120b8fc [svn r37381] Add a shortcut.
--HG--
branch : trunk
2007-01-26 12:50:22 +01:00
fijal 3d301edbc7 [svn r37380] This is rather huge checkin of a rsession refactoring. Got rid
of most of the pkgdir and changed to use get_collector_trail.
Some tests need to be rewritten or killed, right now they're skips.

There are no checks (yet) whether this works with topdir being something
else than previous pkgdir, we'll see...

--HG--
branch : trunk
2007-01-26 12:49:59 +01:00
guido 3cf7c74d1e [svn r37355] Fixing test (not sure why it was in this state?).
--HG--
branch : trunk
2007-01-25 21:39:43 +01:00
fijal ed9004fc46 [svn r37354] Move tracing a bit down (performance, no change in behaviour)
--HG--
branch : trunk
2007-01-25 20:59:17 +01:00
fijal 0a9399329f [svn r37348] Fallback
--HG--
branch : trunk
2007-01-25 18:13:24 +01:00
fijal e4044030b3 [svn r37347] Enchance the test.
--HG--
branch : trunk
2007-01-25 18:03:54 +01:00
fijal 6a8153ae3b [svn r37346] Add __ne__
--HG--
branch : trunk
2007-01-25 18:02:32 +01:00
fijal c237e8d959 [svn r37345] Remove unneeded import
--HG--
branch : trunk
2007-01-25 18:02:01 +01:00
fijal c53dfee4a6 [svn r37343] Hours later and tons of debug print changes....
I HATE PYTHON IMPORTS, I HATE PYTHON IMPORTS, I HATE PYTHON IMPORTS

--HG--
branch : trunk
2007-01-25 17:46:56 +01:00
guido 4ea388b640 [svn r37337] Replaced try/except with a hasattr (makes that unrelated errors are no longer
obfuscated).

--HG--
branch : trunk
2007-01-25 16:23:18 +01:00
guido bedeb1e640 [svn r37330] Replacing any non-Unix newlines with plain \n in
doctests, this fixes some win32 problem.

--HG--
branch : trunk
2007-01-25 15:08:48 +01:00
guido 4feb8d6c01 [svn r37328] Fixed problem with Windows paths in tests when running on Linux (and fixed
relpath() api to deal with line seps in a better way).

--HG--
branch : trunk
2007-01-25 14:22:04 +01:00
guido 987ae8e943 [svn r37326] Fixed exec command on win32
--HG--
branch : trunk
2007-01-25 13:56:12 +01:00
guido eac3021405 [svn r37325] Fixed problems with windows path seperators, fixed functional test exec command for win32
--HG--
branch : trunk
2007-01-25 13:54:51 +01:00
guido ba07a8769f [svn r37322] Turned out there was a function for this already, even... Thanks, fijal!
--HG--
branch : trunk
2007-01-25 12:59:02 +01:00
guido ed55fea143 [svn r37318] Rolling back previous change, instead applying what seems to have been the intention from the start: if '' is supplied as hostname from the server, use the IP address as reported by socket.getsockname()
--HG--
branch : trunk
2007-01-25 11:25:40 +01:00
guido 039ec87c64 [svn r37317] Fixed execnet tests on Windows, for some reason it uses '0.0.0.0' as IP address if '' is given as hostname
--HG--
branch : trunk
2007-01-25 11:16:35 +01:00
guido 1e7d516666 [svn r37315] Skipping test on Windows (no fcntl), removing stuff from try/finally body\n(too much crap in there, obfuscates errors).
--HG--
branch : trunk
2007-01-25 10:51:51 +01:00
guido 6795b4d23c [svn r37314] Added docstring.
--HG--
branch : trunk
2007-01-25 10:46:16 +01:00
guido 18413201f4 [svn r37306] Fixed link (now properly has an href).
--HG--
branch : trunk
2007-01-24 23:09:34 +01:00
guido 6b9e9078c8 [svn r37305] Added some JavaScript to show and hide function information (source and such).
--HG--
branch : trunk
2007-01-24 22:58:21 +01:00
guido 98c1c1809c [svn r37303] Made functional test use an absolute path to py.test.
--HG--
branch : trunk
2007-01-24 22:16:32 +01:00
hpk 4963148482 [svn r37302] experimentally enable FD-based output capturing per-test
--HG--
branch : trunk
2007-01-24 22:11:24 +01:00
fijal a1b696bdb0 [svn r37301] No longer that way (somebody should read that document once again)
--HG--
branch : trunk
2007-01-24 22:10:01 +01:00
fijal 9dc7fbbd37 [svn r37300] Make clean complaints about lack of disthosts and call fixoptions if present.
--HG--
branch : trunk
2007-01-24 22:05:33 +01:00
guido 13cb6854c1 [svn r37299] Removed stupid space.
--HG--
branch : trunk
2007-01-24 22:05:18 +01:00
fijal 72d87746c4 [svn r37298] (fijal, hpk) - bugfix
--HG--
branch : trunk
2007-01-24 22:04:57 +01:00
guido 0b8e0f869a [svn r37297] Fixed dependency on order in the function argument formatting tests.
--HG--
branch : trunk
2007-01-24 22:04:18 +01:00
hpk 3fb8b07b57 [svn r37294] seediff
--HG--
branch : trunk
2007-01-24 21:25:49 +01:00
fijal 8a5d9ac93c [svn r37293] Another aproximation :-]
--HG--
branch : trunk
2007-01-24 21:25:17 +01:00
fijal e8e044761f [svn r37292] SkippedTryiter should be reporter more like in terminal.py
--HG--
branch : trunk
2007-01-24 21:23:05 +01:00
hpk edb7bc4c0f [svn r37291] seediff
--HG--
branch : trunk
2007-01-24 20:35:23 +01:00
hpk c0535c70ad [svn r37290] * allow only CAPITAL letters for short options
* documentation and test for it
* streamlined documentation a bit

--HG--
branch : trunk
2007-01-24 20:18:46 +01:00
hpk 39a82d0400 [svn r37289] todotodo
--HG--
branch : trunk
2007-01-24 20:16:26 +01:00
hpk d6266856ca [svn r37288] added some RSession related TODOs
--HG--
branch : trunk
2007-01-24 18:56:02 +01:00
hpk 0fcaebd17c [svn r37287] don't eat exception, simply use finally
--HG--
branch : trunk
2007-01-24 18:48:13 +01:00
fijal fc740689d7 [svn r37286] Pass a config object deeper in hierarchy
--HG--
branch : trunk
2007-01-24 18:30:29 +01:00
hpk 73ffa14ac9 [svn r37285] this file describing option is obsolete now
--HG--
branch : trunk
2007-01-24 18:24:21 +01:00
hpk 8a240d01f9 [svn r37281] omit tracer test directory for imports
(XXX example Filesystem trees should be created
from code and not reside in SVN)

--HG--
branch : trunk
2007-01-24 18:10:32 +01:00
hpk 7cf9824680 [svn r37278] move files from branch to trunk (and thus complete
the merge of the config branch into the trunk)

--HG--
branch : trunk
2007-01-24 17:46:46 +01:00
hpk 638e4318e4 [svn r37277] merging of file:///svn/py/branch/config/py/test/rsession/testing/test_webjs.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r36986 | fijal | 2007-01-19 13:05:58 +0100 (Fri, 19 Jan 2007) | 4 lines

    Improve the behaviour off cleanup and channel closing, at least on slave side.
    Some cleanups, got rid of some hacks (in favor of other hacks, but posix
    is a bit hackish anyway)

    ------------------------------------------------------------------------
    r36943 | fijal | 2007-01-18 16:09:30 +0100 (Thu, 18 Jan 2007) | 3 lines

    at least LSession should work now. Did not touched yet the remote options stuff,
    but some simplifications were done.

    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:40:06 +01:00
hpk 86ac16b937 [svn r37276] merging of file:///svn/py/branch/config/py/test/rsession/testing/test_rsession.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r37262 | hpk | 2007-01-24 14:55:00 +0100 (Wed, 24 Jan 2007) | 2 lines

    fix failing test

    ------------------------------------------------------------------------
    r37015 | fijal | 2007-01-19 17:24:32 +0100 (Fri, 19 Jan 2007) | 2 lines

    Major cleanup of hostmanage. Got rid of global functions in favor of some better-structured classes.

    ------------------------------------------------------------------------
    r36974 | fijal | 2007-01-18 22:32:04 +0100 (Thu, 18 Jan 2007) | 2 lines

    Fix the test to actually perform RSync of pylib itself and a test if that was true.

    ------------------------------------------------------------------------
    r36970 | hpk | 2007-01-18 20:33:16 +0100 (Thu, 18 Jan 2007) | 6 lines

    some little cleanups - getting rid of we_are_remote
    which is not used anywhere as far as i can see.

    maciej: please check that i didn't mess anything
    up, but for me the same tests as before pass

    ------------------------------------------------------------------------
    r36968 | hpk | 2007-01-18 20:00:21 +0100 (Thu, 18 Jan 2007) | 2 lines

    fixing some imports

    ------------------------------------------------------------------------
    r36966 | fijal | 2007-01-18 19:36:02 +0100 (Thu, 18 Jan 2007) | 2 lines

    Add try: finally:

    ------------------------------------------------------------------------
    r36965 | fijal | 2007-01-18 19:35:00 +0100 (Thu, 18 Jan 2007) | 2 lines

    Fix the test.

    ------------------------------------------------------------------------
    r36963 | fijal | 2007-01-18 19:21:43 +0100 (Thu, 18 Jan 2007) | 2 lines

    Fix remaining tests and make strange hack with parse/reparse.

    ------------------------------------------------------------------------
    r36962 | fijal | 2007-01-18 19:06:13 +0100 (Thu, 18 Jan 2007) | 3 lines

    Huge refactoring. Got rid of remote_options and session_options, two tests
    still fail, so it's intermediate checkin.

    ------------------------------------------------------------------------
    r36943 | fijal | 2007-01-18 16:09:30 +0100 (Thu, 18 Jan 2007) | 3 lines

    at least LSession should work now. Did not touched yet the remote options stuff,
    but some simplifications were done.

    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:40:04 +01:00
hpk 2bdeb13069 [svn r37275] merging of file:///svn/py/branch/config/py/apigen/testing/test_apigen_functional.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r37020 | hpk | 2007-01-19 17:48:15 +0100 (Fri, 19 Jan 2007) | 3 lines

    switching in the new way of getting to a sessionclass,
    removing code in cmdline.py and elsewhere accordingly

    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:40:01 +01:00
hpk a1f2e0a1e0 [svn r37274] merging of file:///svn/py/branch/config/py/test/rsession/web.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r37065 | arigo | 2007-01-20 17:15:10 +0100 (Sat, 20 Jan 2007) | 3 lines

    Choose a random free port when using the --runbrowser option,
    but stick to the fixed 8000 when using --startserver only.

    ------------------------------------------------------------------------
    r36993 | fijal | 2007-01-19 14:54:25 +0100 (Fri, 19 Jan 2007) | 2 lines

    Add possibility to scroll or not to scroll to web frontend. This checkin makes me believe that there is lot of stuff to do in JS backend.

    ------------------------------------------------------------------------
    r36955 | hpk | 2007-01-18 17:44:21 +0100 (Thu, 18 Jan 2007) | 4 lines

    some mods to defaultconfest dist options
    and use "_dist_import_pypy", i.e. a leading underscore
    at least

    ------------------------------------------------------------------------
    r36943 | fijal | 2007-01-18 16:09:30 +0100 (Thu, 18 Jan 2007) | 3 lines

    at least LSession should work now. Did not touched yet the remote options stuff,
    but some simplifications were done.

    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:39:56 +01:00
hpk 7c2ccd8bc5 [svn r37273] merging of file:///svn/py/branch/config/py/test/rsession/rsession.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r37173 | fijal | 2007-01-23 11:26:32 +0100 (Tue, 23 Jan 2007) | 2 lines

    Adhere to --box option.

    ------------------------------------------------------------------------
    r37127 | fijal | 2007-01-22 13:48:33 +0100 (Mon, 22 Jan 2007) | 2 lines

    Add a few docstrings.

    ------------------------------------------------------------------------
    r37110 | hpk | 2007-01-22 00:39:24 +0100 (Mon, 22 Jan 2007) | 2 lines

    renaming some variables for more clarity

    ------------------------------------------------------------------------
    r37065 | arigo | 2007-01-20 17:15:10 +0100 (Sat, 20 Jan 2007) | 3 lines

    Choose a random free port when using the --runbrowser option,
    but stick to the fixed 8000 when using --startserver only.

    ------------------------------------------------------------------------
    r37063 | arigo | 2007-01-20 17:00:31 +0100 (Sat, 20 Jan 2007) | 5 lines

    webbrowser.open() may block until the browser finishes or not, so better
    start it from a background thread.  An case where it blocks is if you
    define the $BROWSER environment variable.


    ------------------------------------------------------------------------
    r37015 | fijal | 2007-01-19 17:24:32 +0100 (Fri, 19 Jan 2007) | 2 lines

    Major cleanup of hostmanage. Got rid of global functions in favor of some better-structured classes.

    ------------------------------------------------------------------------
    r36988 | fijal | 2007-01-19 13:25:05 +0100 (Fri, 19 Jan 2007) | 2 lines

    Improve the C-c support, also keep web interface informed about crashes/interrupts.

    ------------------------------------------------------------------------
    r36969 | fijal | 2007-01-18 20:10:36 +0100 (Thu, 18 Jan 2007) | 3 lines

    Move teardown hosts out of finally (needs further refactoring)
    Kill adddefaultoptions call for now.

    ------------------------------------------------------------------------
    r36964 | hpk | 2007-01-18 19:30:02 +0100 (Thu, 18 Jan 2007) | 8 lines

    move rconfig functionality to general Config object,
    with docstrings, and trying to change rsession accordingly.

    note that it's called "make_repr" and "merge_repr"
    the latter to make it obvious that we are changing
    the instance with the given repr.


    ------------------------------------------------------------------------
    r36962 | fijal | 2007-01-18 19:06:13 +0100 (Thu, 18 Jan 2007) | 3 lines

    Huge refactoring. Got rid of remote_options and session_options, two tests
    still fail, so it's intermediate checkin.

    ------------------------------------------------------------------------
    r36943 | fijal | 2007-01-18 16:09:30 +0100 (Thu, 18 Jan 2007) | 3 lines

    at least LSession should work now. Did not touched yet the remote options stuff,
    but some simplifications were done.

    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:39:54 +01:00
hpk 6dbd42b60e [svn r37272] merging of file:///svn/py/branch/config/py/test/rsession/rest.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r37178 | fijal | 2007-01-23 11:38:39 +0100 (Tue, 23 Jan 2007) | 2 lines

    Make it a bit more working.

    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:39:52 +01:00
hpk e94a602e59 [svn r37271] merging of file:///svn/py/branch/config/py/doc/test_conftest.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r37074 | hpk | 2007-01-20 21:43:52 +0100 (Sat, 20 Jan 2007) | 9 lines

    * config.initsession() deals with getting at a session class
      and initiliazing it
    * config._getcollector(path) gets a collector pointing to path
    * added lots of tests
    * thus remove the strange getfscollector and map2colitems logic
    * mark some tkinter tests as skipped
    * fixing things all around


    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:39:49 +01:00
hpk 0c4cfc40bd [svn r37270] merging of file:///svn/py/branch/config/py/doc/TODO.txt
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r37133 | fijal | 2007-01-22 14:15:53 +0100 (Mon, 22 Jan 2007) | 2 lines

    another update what has been done.

    ------------------------------------------------------------------------
    r37132 | fijal | 2007-01-22 14:12:11 +0100 (Mon, 22 Jan 2007) | 2 lines

    Remove done issues.

    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:39:46 +01:00
hpk 6040cf158d [svn r37269] merging of file:///svn/py/branch/config/py/test/config.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r37263 | hpk | 2007-01-24 14:59:20 +0100 (Wed, 24 Jan 2007) | 19 lines

    * introduce config.initdirect() which should
      be the central place to perform initialization
      on remote nodes/sides.

    * fix --looponfailing (which works nicely now)

    * have Conftest() be an instance instead of
      a class-variable (avoid global state)

    * more thoroughly use the "config.topdir" concept
      (which is not neccessarily the pkgdir.dirpath())

    * on merge_repr don't write values to
      global defaultconftest module (this
      gets tests failing that reuse defaultconftest
      module, but also we want to avoid global
      state in general)


    ------------------------------------------------------------------------
    r37243 | hpk | 2007-01-24 00:06:24 +0100 (Wed, 24 Jan 2007) | 2 lines

    small step-wise cleanups

    ------------------------------------------------------------------------
    r37238 | hpk | 2007-01-23 23:09:57 +0100 (Tue, 23 Jan 2007) | 2 lines

    why do it complicated?

    ------------------------------------------------------------------------
    r37235 | hpk | 2007-01-23 22:25:16 +0100 (Tue, 23 Jan 2007) | 5 lines

    added get_collector_trail method to get
    a representation of a collector relative
    to the topdir.


    ------------------------------------------------------------------------
    r37230 | hpk | 2007-01-23 20:44:22 +0100 (Tue, 23 Jan 2007) | 2 lines

    typo-level fixes

    ------------------------------------------------------------------------
    r37193 | hpk | 2007-01-23 14:53:17 +0100 (Tue, 23 Jan 2007) | 5 lines

    introduced config.topdir, tests and use it from terminal/remote at least.
    also fix fijal's "--box" option handling a bit, but i am not
    sure it should stay this way at all.


    ------------------------------------------------------------------------
    r37172 | fijal | 2007-01-23 11:26:10 +0100 (Tue, 23 Jan 2007) | 2 lines

    Boxing implies lsession

    ------------------------------------------------------------------------
    r37114 | hpk | 2007-01-22 02:20:30 +0100 (Mon, 22 Jan 2007) | 6 lines

    streamlining initial construction of collectors
    (to unify topdir/pkgdir/collector handling
    in rsession/terminal/normal)
    still work in-progress with a skipped test


    ------------------------------------------------------------------------
    r37112 | hpk | 2007-01-22 01:07:09 +0100 (Mon, 22 Jan 2007) | 3 lines

    * moving towards a common rootdir/root collector
    * adding an xxxed test

    ------------------------------------------------------------------------
    r37110 | hpk | 2007-01-22 00:39:24 +0100 (Mon, 22 Jan 2007) | 2 lines

    renaming some variables for more clarity

    ------------------------------------------------------------------------
    r37077 | hpk | 2007-01-20 22:26:52 +0100 (Sat, 20 Jan 2007) | 2 lines

    cleaning up fixoptions() a bit

    ------------------------------------------------------------------------
    r37076 | hpk | 2007-01-20 22:19:42 +0100 (Sat, 20 Jan 2007) | 2 lines

    unskip exec and looponfailing tests, fixes for that

    ------------------------------------------------------------------------
    r37075 | hpk | 2007-01-20 21:51:18 +0100 (Sat, 20 Jan 2007) | 2 lines

    remove two debug prints

    ------------------------------------------------------------------------
    r37074 | hpk | 2007-01-20 21:43:52 +0100 (Sat, 20 Jan 2007) | 9 lines

    * config.initsession() deals with getting at a session class
      and initiliazing it
    * config._getcollector(path) gets a collector pointing to path
    * added lots of tests
    * thus remove the strange getfscollector and map2colitems logic
    * mark some tkinter tests as skipped
    * fixing things all around


    ------------------------------------------------------------------------
    r37065 | arigo | 2007-01-20 17:15:10 +0100 (Sat, 20 Jan 2007) | 3 lines

    Choose a random free port when using the --runbrowser option,
    but stick to the fixed 8000 when using --startserver only.

    ------------------------------------------------------------------------
    r37061 | hpk | 2007-01-20 16:29:25 +0100 (Sat, 20 Jan 2007) | 8 lines

    refactoring/fixing the remote terminal approach
    (used for --exec and --looponfailing) to
    use the new configiguration.  Removes
    lots of strange code.

    XXX there are still some recursive testing issues.


    ------------------------------------------------------------------------
    r37055 | hpk | 2007-01-20 12:51:54 +0100 (Sat, 20 Jan 2007) | 4 lines

    reintroducing --session to lookup custom session objects in conftests.py
    there is no other way to override a session object from conftests.


    ------------------------------------------------------------------------
    r37025 | hpk | 2007-01-19 17:59:50 +0100 (Fri, 19 Jan 2007) | 2 lines

    remove lget and its last usage (which was a bit random)

    ------------------------------------------------------------------------
    r37020 | hpk | 2007-01-19 17:48:15 +0100 (Fri, 19 Jan 2007) | 3 lines

    switching in the new way of getting to a sessionclass,
    removing code in cmdline.py and elsewhere accordingly

    ------------------------------------------------------------------------
    r37013 | hpk | 2007-01-19 17:14:11 +0100 (Fri, 19 Jan 2007) | 2 lines

    somewhat simpler lookup mechanism for sessions

    ------------------------------------------------------------------------
    r37009 | hpk | 2007-01-19 16:50:32 +0100 (Fri, 19 Jan 2007) | 2 lines

    adding a config method to determine the session name

    ------------------------------------------------------------------------
    r36994 | fijal | 2007-01-19 15:08:16 +0100 (Fri, 19 Jan 2007) | 2 lines

    removal of some trailing white-spaces.

    ------------------------------------------------------------------------
    r36964 | hpk | 2007-01-18 19:30:02 +0100 (Thu, 18 Jan 2007) | 8 lines

    move rconfig functionality to general Config object,
    with docstrings, and trying to change rsession accordingly.

    note that it's called "make_repr" and "merge_repr"
    the latter to make it obvious that we are changing
    the instance with the given repr.


    ------------------------------------------------------------------------
    r36942 | hpk | 2007-01-18 16:08:06 +0100 (Thu, 18 Jan 2007) | 4 lines

    group things used for testing and not use non-underscore
    names (otherwise they are consdiered public and
    are possibly seen from apigen through py.test.config!)

    ------------------------------------------------------------------------
    r36941 | fijal | 2007-01-18 15:59:08 +0100 (Thu, 18 Jan 2007) | 2 lines

    Add a hack which allows to temporarily overwrite the config value.

    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:39:42 +01:00
hpk 4a2d9e3f58 [svn r37268] merging of file:///svn/py/branch/config/py/__init__.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r37129 | fijal | 2007-01-22 14:04:00 +0100 (Mon, 22 Jan 2007) | 2 lines

    Move rsync to execnet and expose it as py.execnet.RSync

    ------------------------------------------------------------------------
    r37074 | hpk | 2007-01-20 21:43:52 +0100 (Sat, 20 Jan 2007) | 9 lines

    * config.initsession() deals with getting at a session class
      and initiliazing it
    * config._getcollector(path) gets a collector pointing to path
    * added lots of tests
    * thus remove the strange getfscollector and map2colitems logic
    * mark some tkinter tests as skipped
    * fixing things all around


    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:39:40 +01:00
guido c9545204d0 [svn r37266] Fixed a problem in the CallFrame code, it doesn't like py.code.Source objects
(no test, sorry, didn't succeed in reproducing it from a test yet), some minor
HTML changes.

--HG--
branch : trunk
2007-01-24 17:06:35 +01:00
hpk 5992a8ef21 [svn r37264] create the new development trunk
--HG--
branch : trunk
2007-01-24 15:24:01 +01:00