From 4bd3c91622d67b7c10583bdcdf2c6351a663eeb4 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 15 Apr 2017 01:49:20 +0200 Subject: [PATCH] Fix Python 2 tests. --- test/test_parser/test_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_parser/test_parser.py b/test/test_parser/test_parser.py index a5eb72d0..6d4920f8 100644 --- a/test/test_parser/test_parser.py +++ b/test/test_parser/test_parser.py @@ -185,7 +185,7 @@ def test_param_splitting(): # We don't want b and c to be a part of the param enumeration. Just # ignore them, because it's not what we want to support in the # future. - assert [str(param.name) for param in m.subscopes[0].params] == result + assert [param.name.value for param in m.subscopes[0].params] == result check('def x(a, (b, c)):\n pass', ['a']) check('def x((b, c)):\n pass', [])