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
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
7ab98c1b25
* delete or text files to hacking/ directory.
...
* split license file into authors and license file, minor fixes.
* minor unicode fixes
--HG--
branch : trunk
2009-09-05 16:09:44 +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
45b98d4915
remove so-far superflous _getcode and pickle from builtins, some streamlining
...
--HG--
branch : trunk
2009-09-04 16:32:49 +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
c791610998
* simplify and refactor path tests to use funcargs instead of the layered xunit-setup mess
...
* port py/path to pass 3.11
* added py.builtin._totext, _tobytes, _isbytes, _istext helpers
--HG--
branch : trunk
2009-08-31 19:51:25 +02:00
Benjamin Peterson
1781347999
use py.builtin.execfile()
...
--HG--
branch : trunk
2009-08-29 15:36:27 -05:00
Benjamin Peterson
59892b8532
remove usage of the new module
...
--HG--
branch : trunk
2009-08-29 15:14:18 -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
b930565d56
* fix some syntax and 3k issues for py/path and py/process, tests only partially working
...
* have py.process.cmdexec return unicode/text (for now)
* rename py.builtin.basestring to _basestring
--HG--
branch : trunk
2009-08-29 16:40:03 +02: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
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
681d344eac
deprecate py.magic.autopath() and finally remove py/magic directory.
...
--HG--
branch : trunk
2009-08-27 18:46:42 +02:00
holger krekel
e810e1774d
simplify caching class
...
--HG--
branch : trunk
2009-08-25 16:14:20 +02:00
holger krekel
739edc26b4
simplifying errno error class creation and introduce a py.error.checked_call helper
...
that creates a proper errno-specific exception instead of OSErrors. use it from
py.path.local.
--HG--
branch : trunk
2009-08-25 09:38:19 +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
5118821c10
consolidate svn path implementations and tests into files named after the package namespaces.
...
--HG--
branch : trunk
2009-08-20 20:35:35 +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
561fdca3a2
move localpath implementation to a single file, simplify unix/posix difference and fix a bit
...
--HG--
branch : trunk
2009-08-20 17:37:06 +02:00
holger krekel
d2f497084e
fixing svn status on incomplete files issue #32
...
--HG--
branch : 1.0.x
2009-08-14 18:01:16 +02:00
holger krekel
67c4503d1b
fix bestrelpath related tests and docstrings
...
--HG--
branch : 1.0.x
2009-08-04 09:32:05 +02:00
holger krekel
2514b8faaf
fix a svn-1.6 issue
...
--HG--
branch : 1.0.x
2009-07-30 21:31:31 +02:00
holger krekel
1e84a3c451
fixing a windows issues
...
--HG--
branch : trunk
2009-05-07 21:04:56 +02:00
hpk
b3e22554d7
[svn r64259] porting afa's 64232 and 64253 to trunk
...
--HG--
branch : trunk
2009-04-17 13:30:55 +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
hpk
877a7a32d8
[svn r63103] samefile is only available on posix
...
--HG--
branch : trunk
2009-03-20 01:30:32 +01:00
hpk
f7a23716b5
[svn r63102] add a "samefile" method to local path objects.
...
--HG--
branch : trunk
2009-03-20 00:57:10 +01:00
hpk
4aac96fa13
[svn r63000] * do an as lightweight config.mktemp() as possible
...
* avoid writing lock files if lock_timeout is 0 or None
--HG--
branch : trunk
2009-03-17 15:12:10 +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
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
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
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
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
37eea51f59
[svn r58034] introduce APIWARN helper
...
allow for subscriptions to produced warnings
use it from some places
--HG--
branch : trunk
2008-09-10 11:47:37 +02:00
hpk
a978e606c3
[svn r57833] simplify test setup
...
--HG--
branch : trunk
2008-09-05 11:28:25 +02:00
hpk
621f925985
[svn r57831] small test cleanups while prepping for pycon uk slides
...
--HG--
branch : trunk
2008-09-05 11:02:58 +02:00
hpk
c0d524139e
[svn r57538] re-apply few fixes to make experimental gateway path basically work again.
...
--HG--
branch : trunk
2008-08-21 12:05:04 +02:00
hpk
37a41ed0b7
[svn r57536] get the py.path fixes of 0.9.x release branch back to trunk
...
--HG--
branch : trunk
2008-08-21 12:00:33 +02:00
hpk
a8571daac8
[svn r57481] fix a few things, seems to work again.
...
--HG--
branch : trunk
2008-08-19 23:47:09 +02:00
hpk
353ce8d0ce
[svn r57480] fix changed namespace
...
--HG--
branch : trunk
2008-08-19 23:42:13 +02:00
guido
c32fa7b4f3
[svn r57474] Fixed bug reported by Martijn Faassen - when the XML output of 'svn st --xml'
...
didn't contain author information, the code raised an exception.
--HG--
branch : trunk
2008-08-19 21:50:06 +02:00
hpk
c1ce0c7357
[svn r57464] removing print statement
...
(there is something to be said about doctests :)
--HG--
branch : trunk
2008-08-19 14:23:30 +02:00
guido
623ad564ed
[svn r57449] Merging https://codespeak.net/svn/py/branch/guido-svnwc-xml-status with trunk
...
(revisions 56843:57448).
--HG--
branch : trunk
2008-08-18 22:37:39 +02:00
hpk
a20731b111
[svn r57440] various fixes for python2.6
...
--HG--
branch : trunk
2008-08-18 19:33:31 +02:00
hpk
88a534e9b0
[svn r57323] port 57174 from branch: ignore errors when removing dirs in teardowns
...
--HG--
branch : trunk
2008-08-16 17:38:54 +02:00