Skip to content

Commit 0821794

Browse files
committed
Mild hackery to avoid Python 2/3 conflicts
1 parent 676112c commit 0821794

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_func.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323

2424
SKIP_TESTS_FOR_DJANGO_VERSION = {
25-
# if the value of the dict key is False, skip the test, otherwise run it
26-
'func_noerror_protected_meta_access': django_version >= (1, 8)
25+
# if the second value is False, skip the test, otherwise run it
26+
('func_noerror_protected_meta_access', django_version >= (1, 8)),
2727
}
2828

2929

@@ -51,7 +51,7 @@ def tests(input_dir, messages_dir):
5151
# a piece of functionality in pylint-django that should only
5252
# in higher versions.
5353
specific_tests = []
54-
for test_name, version_range in SKIP_TESTS_FOR_DJANGO_VERSION.iteritems():
54+
for test_name, version_range in SKIP_TESTS_FOR_DJANGO_VERSION:
5555
if not version_range:
5656
specific_tests.append(test_name)
5757
filter_rgx = '(%s)' % '|'.join(specific_tests)

0 commit comments

Comments
 (0)