[svn r38123] skip path.txt svn tests if not run via --checkremote
--HG-- branch : trunk
This commit is contained in:
parent
7213771cc9
commit
356b831208
|
@ -6,7 +6,7 @@ Option = py.test.config.Option
|
||||||
option = py.test.config.addoptions("documentation check options",
|
option = py.test.config.addoptions("documentation check options",
|
||||||
Option('-R', '--checkremote',
|
Option('-R', '--checkremote',
|
||||||
action="store_true", dest="checkremote", default=False,
|
action="store_true", dest="checkremote", default=False,
|
||||||
help="check remote links in ReST files"
|
help="perform tests involving remote accesses (links, svn)"
|
||||||
),
|
),
|
||||||
Option('', '--forcegen',
|
Option('', '--forcegen',
|
||||||
action="store_true", dest="forcegen", default=False,
|
action="store_true", dest="forcegen", default=False,
|
||||||
|
|
|
@ -51,6 +51,8 @@ solutions.
|
||||||
|
|
||||||
Some example usage of :api:`py.path.svnurl`::
|
Some example usage of :api:`py.path.svnurl`::
|
||||||
|
|
||||||
|
.. >>> import py
|
||||||
|
.. >>> if not getattr(py.test.config.option, 'checkremote', 0): py.test.skip("use --checkremote to enable svn remote doctests")
|
||||||
>>> url = py.path.svnurl('http://codespeak.net/svn/py')
|
>>> url = py.path.svnurl('http://codespeak.net/svn/py')
|
||||||
>>> info = url.info()
|
>>> info = url.info()
|
||||||
>>> info.kind
|
>>> info.kind
|
||||||
|
|
Loading…
Reference in New Issue