diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2015-03-04 20:55:46 +0100 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2015-06-24 21:31:14 +0200 |
commit | 4533c6674e51a4609c87fc208d3bb53263199030 (patch) | |
tree | 8d2ac14bdf9d6e8f93dcd0d6075553699fd56961 /tests | |
parent | 6cb457e2e67c3e1c3f165d69a46f5c17944dcc25 (diff) | |
download | gobject-introspection-4533c6674e51a4609c87fc208d3bb53263199030.tar.gz |
tests: Python 3 fixes
tests/scanner/annotationparser/test_[parser|patterns].py
stopped working with Python3 somewhere down the line due
to the iteritems() call...
https://bugzilla.gnome.org/show_bug.cgi?id=745636
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scanner/annotationparser/test_parser.py | 2 | ||||
-rw-r--r-- | tests/scanner/annotationparser/test_patterns.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/scanner/annotationparser/test_parser.py b/tests/scanner/annotationparser/test_parser.py index 79cc8622..19219386 100644 --- a/tests/scanner/annotationparser/test_parser.py +++ b/tests/scanner/annotationparser/test_parser.py @@ -450,7 +450,7 @@ def load_tests(loader, tests, pattern): # Load test cases from disc tests_dir = os.path.dirname(os.path.abspath(__file__)) - for name, test_case in _all_tests.iteritems(): + for name, test_case in _all_tests.items(): tests = loader.loadTestsFromTestCase(test_case) suite.addTests(tests) return suite diff --git a/tests/scanner/annotationparser/test_patterns.py b/tests/scanner/annotationparser/test_patterns.py index 774d674c..b53f537f 100644 --- a/tests/scanner/annotationparser/test_patterns.py +++ b/tests/scanner/annotationparser/test_patterns.py @@ -933,7 +933,7 @@ def load_tests(loader, tests, pattern): # add standard tests from module suite.addTests(tests) - for name, test_case in _all_tests.iteritems(): + for name, test_case in _all_tests.items(): tests = loader.loadTestsFromTestCase(test_case) suite.addTests(tests) return suite |