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):
|
||||
if not os.path.exists('.test_sphinxext/'):
|
||||
os.makedirs('.test_sphinxext/')
|
||||
assert sphinx.main(['',
|
||||
'-b', 'html',
|
||||
'-d', '.test_sphinxext/doctree',
|
||||
docpath,
|
||||
'.test_sphinxext/html']) == 0
|
||||
try:
|
||||
sphinx.main([
|
||||
'',
|
||||
'-b', 'html',
|
||||
'-d', '.test_sphinxext/doctree',
|
||||
docpath,
|
||||
'.test_sphinxext/html'
|
||||
])
|
||||
assert Exception("Should raise SystemExit 0")
|
||||
except SystemExit as e:
|
||||
assert e.code == 0
|
||||
|
||||
|
||||
class TestDataTypeName(unittest.TestCase):
|
||||
|
Loading…
x
Reference in New Issue
Block a user