moved laura's utestconvert script to a more visible place
--HG-- branch : trunk
This commit is contained in:
parent
1fcd373bd5
commit
2b8f489d60
|
@ -4,6 +4,10 @@ Changes between 1.0.x and 'trunk'
|
||||||
* introduce py.io.TextIO and py.io.BytesIO for distinguishing between
|
* introduce py.io.TextIO and py.io.BytesIO for distinguishing between
|
||||||
text/unicode and byte-streams (uses underlying standard lib io.*
|
text/unicode and byte-streams (uses underlying standard lib io.*
|
||||||
if available)
|
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
|
* simplified internal localpath implementation
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,7 @@ initpkg(__name__,
|
||||||
'cmdline.pycleanup' : ('./cmdline/pycleanup.py', 'main',),
|
'cmdline.pycleanup' : ('./cmdline/pycleanup.py', 'main',),
|
||||||
'cmdline.pywhich' : ('./cmdline/pywhich.py', 'main',),
|
'cmdline.pywhich' : ('./cmdline/pywhich.py', 'main',),
|
||||||
'cmdline.pysvnwcrevert' : ('./cmdline/pysvnwcrevert.py', 'main',),
|
'cmdline.pysvnwcrevert' : ('./cmdline/pysvnwcrevert.py', 'main',),
|
||||||
|
'cmdline.pyconvert_unittest' : ('./cmdline/pyconvert_unittest.py', 'main',),
|
||||||
|
|
||||||
# helpers for use from test functions or collectors
|
# helpers for use from test functions or collectors
|
||||||
'test.__doc__' : ('./test/__init__.py', '__doc__'),
|
'test.__doc__' : ('./test/__init__.py', '__doc__'),
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
from _findpy import py
|
||||||
|
py.cmdline.pyconvert_unittest()
|
|
@ -0,0 +1,2 @@
|
||||||
|
@echo off
|
||||||
|
python "%~dp0\..\py.convert_unittest" %*
|
|
@ -185,8 +185,8 @@ def get_expr(s, char):
|
||||||
pass
|
pass
|
||||||
raise SyntaxError # We never found anything that worked.
|
raise SyntaxError # We never found anything that worked.
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
|
|
||||||
|
def main():
|
||||||
import sys
|
import sys
|
||||||
import py
|
import py
|
||||||
|
|
||||||
|
@ -245,3 +245,5 @@ if __name__ == '__main__':
|
||||||
outfile.write(s)
|
outfile.write(s)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
|
@ -1,4 +1,5 @@
|
||||||
from py.__.tool.utestconvert import rewrite_utest
|
from py.__.cmdline.pyconvert_unittest import rewrite_utest
|
||||||
|
|
||||||
|
|
||||||
class Test_UTestConvert:
|
class Test_UTestConvert:
|
||||||
def testall(self):
|
def testall(self):
|
|
@ -1 +0,0 @@
|
||||||
#
|
|
|
@ -1 +0,0 @@
|
||||||
#
|
|
Loading…
Reference in New Issue