diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index fb2a7010f598eb105e60ed173f356ae36acaf820..6b6462f527b0a4eff895cc6460b0f4012518b025 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -16,6 +16,7 @@ import sys from math import ceil, trunc, floor, log from pathlib import Path, PurePath import collections +import collections.abc import subprocess from testglobals import config, ghc_env, default_testopts, brokens, t, \ @@ -907,7 +908,7 @@ def join_normalisers(*a): Taken from http://stackoverflow.com/a/2158532/946226 """ for el in l: - if (isinstance(el, collections.Iterable) + if (isinstance(el, collections.abc.Iterable) and not isinstance(el, (bytes, str))): for sub in flatten(el): yield sub