[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('-R', '--checkremote',
|
||||
action="store_true", dest="checkremote", default=False,
|
||||
help="check remote links in ReST files"
|
||||
help="perform tests involving remote accesses (links, svn)"
|
||||
),
|
||||
Option('', '--forcegen',
|
||||
action="store_true", dest="forcegen", default=False,
|
||||
|
|
|
@ -51,6 +51,8 @@ solutions.
|
|||
|
||||
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')
|
||||
>>> info = url.info()
|
||||
>>> info.kind
|
||||
|
|
Loading…
Reference in New Issue