From 6d296f11c9fdfb0868f34e3c5065c60304b6f500 Mon Sep 17 00:00:00 2001 From: rocky Date: Thu, 31 Oct 2019 07:13:41 -0400 Subject: [PATCH] Add another 3.8 test --- test/simple_source/bug38/01_extra_iter.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/simple_source/bug38/01_extra_iter.py diff --git a/test/simple_source/bug38/01_extra_iter.py b/test/simple_source/bug38/01_extra_iter.py new file mode 100644 index 00000000..476c2055 --- /dev/null +++ b/test/simple_source/bug38/01_extra_iter.py @@ -0,0 +1,7 @@ +# Adapted from From 3.3 urllib/parse.py +qs = "https://travis-ci.org/rocky/python-uncompyle6/builds/605260823?utm_medium=notification&utm_source=email" +expect = ['https://travis-ci.org/rocky/python-uncompyle6/builds/605260823?utm_medium=notification', 'utm_source=email'] + +# Should visually see that we don't add an extra iter() which is not technically wrong, just +# unnecessary. +assert expect == [s2 for s1 in qs.split('&') for s2 in s1.split(';')]