sconsDoxy: Update doxygen testcase and rename

Signed-off-by: Mats Wichmann <mats@linux.com>
This commit is contained in:
Mats Wichmann 2022-07-31 17:12:23 -06:00 committed by Ichthyostega
parent ebf51f227c
commit 5d1bf3c0be

View file

@ -22,7 +22,7 @@
import unittest
import os
import sys
from .doxygen import DoxyfileParse
from doxygen import DoxyfileParse
class TestParser(unittest.TestCase):
@ -53,6 +53,14 @@ INPUT = test.h
text = """@INCLUDE=recursive_include_test.cfg"""
self.assertRaises(Exception, DoxyfileParse, text, self.test_config_dir)
def test_bytes_parse(self):
"""Parsing bytes instead of txt should blow up."""
text = b"""
# comment
INPUT = test.h
"""
self.assertRaises(AttributeError, DoxyfileParse, text, self.test_config_dir)
if __name__ == "__main__":
unittest.main()