summaryrefslogtreecommitdiff
path: root/skip/ghc/tests-use-iterable-from-collections-abc.patch
blob: cf77555103550ebcf188d16b0b39ea4ca9c596fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Iterable has been moved to collections.abc
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index e899d61b..2f967666 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -15,7 +15,7 @@ import glob
 import sys
 from math import ceil, trunc
 from pathlib import Path, PurePath
-import collections
+import collections.abc
 import subprocess
 
 from testglobals import config, ghc_env, default_testopts, brokens, t, \
@@ -809,7 +809,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