Skip to content

Commit 79d2b9a

Browse files
committed
Make requested updates
Fix copy/paste copyright header to only be for the year 2021 Fix variable names in the text checking function. Use the latest version of CastXML for testing too.
1 parent 27a14ee commit 79d2b9a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ jobs:
7575
- name: Setup castxml for Linux
7676
if: matrix.os == 'ubuntu-18.04' && matrix.castxml == 'castxml'
7777
run: |
78-
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/b580374e48d4df68f8ebef6d0e71cd8cc3f2dfa28f0090e07cc043d11cee308aeea480092fe2e93f2d4c58f822a5c013c1c7121964372d28ee4069949a378b4c/download | tar zxf - -C ~/
78+
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/bdbb67a10c5f8d1b738cd19cb074f409d4803e8077cb8c1072ef4eaf738fa871a73643f9c8282d58cae28d188df842c82ad6620b6d590b0396a0172a27438dce/download | tar zxf - -C ~/
7979
- name: Setup castxml for Mac
8080
if: matrix.os == 'macos-latest'
8181
run: |
82-
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/e5962372508abd295f8a8110a20142bcbd93c235f72afba34b0abb3918a623f27465a7674b5532320e770f56fddb99019f5c47b254cea9f862a2df35630c2879/download | tar zxf - -C ~/
82+
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/5d937e938f7b882a3a3e7941e68f8312d0898aaf2082e00003dd362b1ba70b98b0a08706a1be28e71652a6a0f1e66f89768b5eaa20e5a100592d5b3deefec3f0/download | tar zxf - -C ~/
8383
- name: Setup castxml config
8484
if: matrix.compiler == 'gcc' && matrix.version == '7'
8585
run: mv unittests/configs/gcc7.cfg unittests/xml_generator.cfg;

unittests/test_deprecation.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Copyright 2014-2020 Insight Software Consortium.
2-
# Copyright 2004-2009 Roman Yakovenko.
1+
# Copyright 2021 Insight Software Consortium.
32
# Distributed under the Boost Software License, Version 1.0.
43
# See http://www.boost.org/LICENSE_1_0.txt
54

65
import unittest
6+
import pprint
77

88
from . import parser_test_case
99

@@ -20,14 +20,13 @@ def __init__(self, *args):
2020
self.global_ns = None
2121
self.config.castxml_epic_version = 1
2222

23-
def _check_text_content(self, list, comment_decl):
24-
if comment_decl:
25-
self.assertEqual(list, comment_decl)
23+
def _check_text_content(self, desired_text, deprecation_string):
24+
if deprecation_string:
25+
self.assertEqual(desired_text, deprecation_string)
2626
else:
27-
print("No text in comment to check")
27+
pprint.pprint("No text in deprecation string")
2828

2929
def setUp(self):
30-
3130
if not self.global_ns:
3231
decls = parser.parse([self.header], self.config)
3332
Test.global_ns = declarations.get_global_namespace(decls)

0 commit comments

Comments
 (0)