From 974fa61b0ea26c07d7b16ff8d53eb682d3f0c21f 2013-10-29 16:15:56 From: Thomas Kluyver Date: 2013-10-29 16:15:56 Subject: [PATCH] Fix tests for IPython.testing --- diff --git a/IPython/testing/plugin/show_refs.py b/IPython/testing/plugin/show_refs.py index 9cdea1a..ef7dd15 100644 --- a/IPython/testing/plugin/show_refs.py +++ b/IPython/testing/plugin/show_refs.py @@ -15,6 +15,6 @@ if __name__ == '__main__': c = C() c_refs = gc.get_referrers(c) - ref_ids = map(id,c_refs) + ref_ids = list(map(id,c_refs)) - print('c referrers:',map(type,c_refs)) + print('c referrers:',list(map(type,c_refs)))