summaryrefslogtreecommitdiff
path: root/testsuite/driver/testlib.py
diff options
context:
space:
mode:
authorZubin Duggal <zubin.duggal@gmail.com>2022-01-12 23:01:40 +0530
committerZubin Duggal <zubin.duggal@gmail.com>2022-01-12 23:39:11 +0530
commitbcd90c679c3691c1de37bc03f5731d21bd588c7f (patch)
tree7da75648edfe5143a571b71ad3e5bab834efabe4 /testsuite/driver/testlib.py
parent92f3e6e4e30b853af304aa53f529af2c262419f1 (diff)
downloadhaskell-wip/testsuite-python-310.tar.gz
testsuite: Fix import on python 3.10wip/testsuite-python-310
Diffstat (limited to 'testsuite/driver/testlib.py')
-rw-r--r--testsuite/driver/testlib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index fb2a7010f5..6b6462f527 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