summaryrefslogtreecommitdiff
path: root/numpy/testing
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-08-27 04:36:38 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2020-01-03 10:48:11 -0500
commited1e9659f103260a32536b4a7615393e3b1173dc (patch)
treebc5b0e2aae24dd6b35a7d9c8d9e77331176f2f51 /numpy/testing
parentf30b2564d3923b2c307a026e4a22d20bc19872f0 (diff)
downloadnumpy-ed1e9659f103260a32536b4a7615393e3b1173dc.tar.gz
MAINT: Remove unnecessary 'from __future__ import ...' statements
As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
Diffstat (limited to 'numpy/testing')
-rw-r--r--numpy/testing/__init__.py2
-rw-r--r--numpy/testing/_private/decorators.py2
-rw-r--r--numpy/testing/_private/noseclasses.py2
-rw-r--r--numpy/testing/_private/nosetester.py2
-rw-r--r--numpy/testing/_private/utils.py2
-rwxr-xr-xnumpy/testing/print_coercion_tables.py2
-rwxr-xr-xnumpy/testing/setup.py2
-rw-r--r--numpy/testing/tests/test_decorators.py2
-rw-r--r--numpy/testing/tests/test_doctesting.py2
-rw-r--r--numpy/testing/tests/test_utils.py2
-rw-r--r--numpy/testing/utils.py2
11 files changed, 0 insertions, 22 deletions
diff --git a/numpy/testing/__init__.py b/numpy/testing/__init__.py
index a8bd4fc15..e1f87621f 100644
--- a/numpy/testing/__init__.py
+++ b/numpy/testing/__init__.py
@@ -5,8 +5,6 @@ in a single location, so that test scripts can just import it and work right
away.
"""
-from __future__ import division, absolute_import, print_function
-
from unittest import TestCase
from ._private.utils import *
diff --git a/numpy/testing/_private/decorators.py b/numpy/testing/_private/decorators.py
index 24c4e385d..2012b80d3 100644
--- a/numpy/testing/_private/decorators.py
+++ b/numpy/testing/_private/decorators.py
@@ -13,8 +13,6 @@ function name, setup and teardown functions and so on - see
``nose.tools`` for more information.
"""
-from __future__ import division, absolute_import, print_function
-
try:
# Accessing collections abstract classes from collections
# has been deprecated since Python 3.3
diff --git a/numpy/testing/_private/noseclasses.py b/numpy/testing/_private/noseclasses.py
index e99bbc97d..7cad24620 100644
--- a/numpy/testing/_private/noseclasses.py
+++ b/numpy/testing/_private/noseclasses.py
@@ -4,8 +4,6 @@
# Because this module imports nose directly, it should not
# be used except by nosetester.py to avoid a general NumPy
# dependency on nose.
-from __future__ import division, absolute_import, print_function
-
import os
import sys
import doctest
diff --git a/numpy/testing/_private/nosetester.py b/numpy/testing/_private/nosetester.py
index 19569a509..6226eeb3c 100644
--- a/numpy/testing/_private/nosetester.py
+++ b/numpy/testing/_private/nosetester.py
@@ -4,8 +4,6 @@ Nose test running.
This module implements ``test()`` and ``bench()`` functions for NumPy modules.
"""
-from __future__ import division, absolute_import, print_function
-
import os
import sys
import warnings
diff --git a/numpy/testing/_private/utils.py b/numpy/testing/_private/utils.py
index a3bd6d7a5..1e118b538 100644
--- a/numpy/testing/_private/utils.py
+++ b/numpy/testing/_private/utils.py
@@ -2,8 +2,6 @@
Utility function to facilitate testing.
"""
-from __future__ import division, absolute_import, print_function
-
import os
import sys
import platform
diff --git a/numpy/testing/print_coercion_tables.py b/numpy/testing/print_coercion_tables.py
index 72b22cee1..c11b31968 100755
--- a/numpy/testing/print_coercion_tables.py
+++ b/numpy/testing/print_coercion_tables.py
@@ -2,8 +2,6 @@
"""Prints type-coercion tables for the built-in NumPy types
"""
-from __future__ import division, absolute_import, print_function
-
import numpy as np
# Generic object that can be added, but doesn't do anything else
diff --git a/numpy/testing/setup.py b/numpy/testing/setup.py
index 7c3f2fbdf..c061b688a 100755
--- a/numpy/testing/setup.py
+++ b/numpy/testing/setup.py
@@ -1,6 +1,4 @@
#!/usr/bin/env python
-from __future__ import division, print_function
-
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
diff --git a/numpy/testing/tests/test_decorators.py b/numpy/testing/tests/test_decorators.py
index c029bf90c..fc8d764c2 100644
--- a/numpy/testing/tests/test_decorators.py
+++ b/numpy/testing/tests/test_decorators.py
@@ -2,8 +2,6 @@
Test the decorators from ``testing.decorators``.
"""
-from __future__ import division, absolute_import, print_function
-
import warnings
import pytest
diff --git a/numpy/testing/tests/test_doctesting.py b/numpy/testing/tests/test_doctesting.py
index b77cd93e0..92c2156d8 100644
--- a/numpy/testing/tests/test_doctesting.py
+++ b/numpy/testing/tests/test_doctesting.py
@@ -1,8 +1,6 @@
""" Doctests for NumPy-specific nose/doctest modifications
"""
-from __future__ import division, absolute_import, print_function
-
#FIXME: None of these tests is run, because 'check' is not a recognized
# testing prefix.
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py
index ad72b9199..f752c63f3 100644
--- a/numpy/testing/tests/test_utils.py
+++ b/numpy/testing/tests/test_utils.py
@@ -1,5 +1,3 @@
-from __future__ import division, absolute_import, print_function
-
import warnings
import sys
import os
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py
index 975f6ad5d..753258c13 100644
--- a/numpy/testing/utils.py
+++ b/numpy/testing/utils.py
@@ -3,8 +3,6 @@ Back compatibility utils module. It will import the appropriate
set of tools
"""
-from __future__ import division, absolute_import, print_function
-
import warnings
# 2018-04-04, numpy 1.15.0 ImportWarning