Skip to content

Commit be5bfd1

Browse files
committed
Replace deprecated attribute
`variable_t.type` is now deprecated, replace its uses with `variable_t.decl_type` Change-Id: Ie97e9a865cc9cb7022a7831623949f4c301568fe
1 parent bd20909 commit be5bfd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unittests/array_bug_tester.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test5(self):
6060
src_reader = parser.source_reader_t(self.config)
6161
global_ns = declarations.get_global_namespace(
6262
src_reader.read_string(code))
63-
arr_type = global_ns.variable('arr').type
63+
arr_type = global_ns.variable('arr').decl_type
6464
if self.config.xml_generator == "gccxml":
6565
self.assertTrue(
6666
'char[4] const' == arr_type.decl_string,
@@ -79,7 +79,7 @@ def test6(self):
7979
src_reader = parser.source_reader_t(self.config)
8080
global_ns = declarations.get_global_namespace(
8181
src_reader.read_string(code))
82-
arr_type = global_ns.variable('arr').type
82+
arr_type = global_ns.variable('arr').decl_type
8383
if self.config.xml_generator == "gccxml":
8484
self.assertTrue(
8585
'char[4] volatile' == arr_type.decl_string,
@@ -98,7 +98,7 @@ def test7(self):
9898
src_reader = parser.source_reader_t(self.config)
9999
global_ns = declarations.get_global_namespace(
100100
src_reader.read_string(code))
101-
arr_type = global_ns.variable('arr').type
101+
arr_type = global_ns.variable('arr').decl_type
102102
if self.config.xml_generator == "gccxml":
103103
self.assertTrue(
104104
'char[4] const volatile' == arr_type.decl_string,

0 commit comments

Comments
 (0)