Fix broken sphinx tests.
Change-Id: I2c2046b4ef31c78731f25f3b8e579b05ca0953fb
This commit is contained in:
parent
baa816c820
commit
7cee58bce9
@ -20,11 +20,17 @@ class TestSphinxExt(unittest.TestCase):
|
|||||||
def test_buildhtml(self):
|
def test_buildhtml(self):
|
||||||
if not os.path.exists('.test_sphinxext/'):
|
if not os.path.exists('.test_sphinxext/'):
|
||||||
os.makedirs('.test_sphinxext/')
|
os.makedirs('.test_sphinxext/')
|
||||||
assert sphinx.main(['',
|
try:
|
||||||
|
sphinx.main([
|
||||||
|
'',
|
||||||
'-b', 'html',
|
'-b', 'html',
|
||||||
'-d', '.test_sphinxext/doctree',
|
'-d', '.test_sphinxext/doctree',
|
||||||
docpath,
|
docpath,
|
||||||
'.test_sphinxext/html']) == 0
|
'.test_sphinxext/html'
|
||||||
|
])
|
||||||
|
assert Exception("Should raise SystemExit 0")
|
||||||
|
except SystemExit as e:
|
||||||
|
assert e.code == 0
|
||||||
|
|
||||||
|
|
||||||
class TestDataTypeName(unittest.TestCase):
|
class TestDataTypeName(unittest.TestCase):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user