Don't we use 'six'? It provides a better mechanism than an explicit
version-dependent import.


On Tue, May 6, 2014 at 10:32 PM, Charles Harris <notifications@github.com>wrote:

> In numpy/fft/tests/test_fftpack.py:
>
> > @@ -1,7 +1,8 @@
> >  from __future__ import division, absolute_import, print_function
> >
> >  import numpy as np
> > -from numpy.testing import TestCase, run_module_suite, assert_array_almost_equal
> > +from numpy.testing import TestCase, run_module_suite, assert_array_equal, assert_array_almost_equal
> > +import threading, Queue
>
> A version dependent import is needed here, in Python 3 Queue was been
> renamed queue . This test is failing for those later versions.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/numpy/numpy/pull/4656/files#r12350471>
> .
>



-- 
Nathaniel J. Smith
Postdoctoral researcher - Informatics - University of Edinburgh
http://vorpus.org