moved laura's utestconvert script to a more visible place

--HG--
branch : trunk
This commit is contained in:
holger krekel 2009-08-21 12:56:43 +02:00
parent 1fcd373bd5
commit 2b8f489d60
8 changed files with 15 additions and 4 deletions

View File

@ -4,6 +4,10 @@ Changes between 1.0.x and 'trunk'
* introduce py.io.TextIO and py.io.BytesIO for distinguishing between
text/unicode and byte-streams (uses underlying standard lib io.*
if available)
* make py.unittest_convert helper script available which converts "unittest.py"
style files into the simpler assert/direct-test-classes py.test/nosetests
style. The script was written by Laura Creighton.
* simplified internal localpath implementation

View File

@ -62,6 +62,7 @@ initpkg(__name__,
'cmdline.pycleanup' : ('./cmdline/pycleanup.py', 'main',),
'cmdline.pywhich' : ('./cmdline/pywhich.py', 'main',),
'cmdline.pysvnwcrevert' : ('./cmdline/pysvnwcrevert.py', 'main',),
'cmdline.pyconvert_unittest' : ('./cmdline/pyconvert_unittest.py', 'main',),
# helpers for use from test functions or collectors
'test.__doc__' : ('./test/__init__.py', '__doc__'),

3
py/bin/py.convert_unittest Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env python
from _findpy import py
py.cmdline.pyconvert_unittest()

View File

@ -0,0 +1,2 @@
@echo off
python "%~dp0\..\py.convert_unittest" %*

View File

@ -185,8 +185,8 @@ def get_expr(s, char):
pass
raise SyntaxError # We never found anything that worked.
if __name__ == '__main__':
def main():
import sys
import py
@ -245,3 +245,5 @@ if __name__ == '__main__':
outfile.write(s)
if __name__ == '__main__':
main()

View File

@ -1,4 +1,5 @@
from py.__.tool.utestconvert import rewrite_utest
from py.__.cmdline.pyconvert_unittest import rewrite_utest
class Test_UTestConvert:
def testall(self):

View File

@ -1 +0,0 @@
#

View File

@ -1 +0,0 @@
#