[svn r38121] Same issue. Race conditions in file write. Probably we should not use
the same file output for multiple tests (or to put data directory outside pylib itself). --HG-- branch : trunk
This commit is contained in:
parent
e5091b7e9d
commit
461c0b6a54
|
@ -11,7 +11,8 @@ from py.__.rest.latex import process_rest_file
|
||||||
datadir = py.magic.autopath().dirpath().join("data")
|
datadir = py.magic.autopath().dirpath().join("data")
|
||||||
testdir = py.test.ensuretemp("rest")
|
testdir = py.test.ensuretemp("rest")
|
||||||
|
|
||||||
def test_graphviz_html():
|
class TestGraphviz(object):
|
||||||
|
def _graphviz_html(self):
|
||||||
if not py.path.local.sysfind("dot"):
|
if not py.path.local.sysfind("dot"):
|
||||||
py.test.skip("graphviz needed")
|
py.test.skip("graphviz needed")
|
||||||
directive.set_backend_and_register_directives("html")
|
directive.set_backend_and_register_directives("html")
|
||||||
|
@ -28,7 +29,7 @@ def test_graphviz_html():
|
||||||
html.remove()
|
html.remove()
|
||||||
png.remove()
|
png.remove()
|
||||||
|
|
||||||
def test_graphviz_pdf():
|
def _graphviz_pdf(self):
|
||||||
if not py.path.local.sysfind("dot") or not py.path.local.sysfind("latex"):
|
if not py.path.local.sysfind("dot") or not py.path.local.sysfind("latex"):
|
||||||
py.test.skip("graphviz and latex needed")
|
py.test.skip("graphviz and latex needed")
|
||||||
|
|
||||||
|
@ -42,6 +43,10 @@ def test_graphviz_pdf():
|
||||||
pdf.remove()
|
pdf.remove()
|
||||||
dotpdf.remove()
|
dotpdf.remove()
|
||||||
|
|
||||||
|
def test_graphviz(self):
|
||||||
|
self._graphviz_html()
|
||||||
|
self._graphviz_pdf()
|
||||||
|
|
||||||
def test_own_links():
|
def test_own_links():
|
||||||
def callback(name, text):
|
def callback(name, text):
|
||||||
assert name == "foo"
|
assert name == "foo"
|
||||||
|
|
Loading…
Reference in New Issue