summaryrefslogtreecommitdiff
path: root/tests/scan.py
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2019-07-13 23:15:23 -0700
committerStefan Sauer <ensonic@users.sf.net>2019-07-13 23:15:23 -0700
commit58094106b0e41dec2414f6318d13c0e8381ac10e (patch)
tree2c4b4db7338eca2b16d8c237496c86eb9d83fca8 /tests/scan.py
parent25e534463a259420d07309535f8b99e468cfaec2 (diff)
downloadgtk-doc-58094106b0e41dec2414f6318d13c0e8381ac10e.tar.gz
scan: enable the new exception
Fixed one test and removed the other one as is was non-sense one. Add code to handle the exception one level up.
Diffstat (limited to 'tests/scan.py')
-rwxr-xr-xtests/scan.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/scan.py b/tests/scan.py
index 55d675a..57b4603 100755
--- a/tests/scan.py
+++ b/tests/scan.py
@@ -456,7 +456,7 @@ class ScanHeaderContentStructs(ScanHeaderContentTestCase):
slist, doc_comments = self.scanHeaderContent([header])
self.assertNoDeclFound(slist)
- def test_IgnoresPrivteStruct(self):
+ def test_IgnoresPrivateStruct(self):
header = 'struct _x;'
slist, doc_comments = self.scanHeaderContent([header])
self.assertNoDeclFound(slist)
@@ -515,8 +515,8 @@ class ScanHeaderContentUnions(ScanHeaderContentTestCase):
slist, doc_comments = self.scanHeaderContent([header])
self.assertNoDeclFound(slist)
- def test_IgnoresPrivteStruct(self):
- header = 'union _x x;'
+ def test_IgnoresPrivateUnion(self):
+ header = 'union _x;'
slist, doc_comments = self.scanHeaderContent([header])
self.assertNoDeclFound(slist)
@@ -663,11 +663,6 @@ class ScanHeaderContentTypedefs(ScanHeaderContentTestCase):
slist, doc_comments = self.scanHeaderContent([header])
self.assertDecl('uint', header, slist)
- def test_SkipsEnumTypedefDifferentName(self):
- header = 'typedef enum data dateenum;'
- slist, doc_comments = self.scanHeaderContent([header])
- self.assertNoDeclFound(slist)
-
def test_SkipsEnumTypedefUnderscoreName(self):
header = 'typedef enum _data data;'
slist, doc_comments = self.scanHeaderContent([header])
@@ -771,6 +766,9 @@ class SeparateSubSections(ScanHeaderContentTestCase):
if __name__ == '__main__':
+ from gtkdoc import common
+ common.setup_logging()
+
unittest.main()
# from gtkdoc import common