[gobject-introspection] tests: Python 3 fixes
- From: Dieter Verfaillie <dieterv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] tests: Python 3 fixes
- Date: Wed, 24 Jun 2015 19:59:36 +0000 (UTC)
commit 4533c6674e51a4609c87fc208d3bb53263199030
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date: Wed Mar 4 20:55:46 2015 +0100
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
tests/scanner/annotationparser/test_parser.py | 2 +-
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 79cc862..1921938 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 774d674..b53f537 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]