diff --git a/.travis.yml b/.travis.yml index b4c798c..bcfec1e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ before_install: - sudo apt-get install python-pip openjdk-7-jdk install: - - pip install --upgrade cython future six + - pip install --upgrade cython six script: - make diff --git a/tests/test_assignable.py b/tests/test_assignable.py index 2922db8..9a2783a 100644 --- a/tests/test_assignable.py +++ b/tests/test_assignable.py @@ -1,8 +1,6 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() import unittest from jnius import autoclass, JavaException diff --git a/tests/test_bad_declaration.py b/tests/test_bad_declaration.py index 90ffef6..93b6b33 100644 --- a/tests/test_bad_declaration.py +++ b/tests/test_bad_declaration.py @@ -1,8 +1,6 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() import unittest from jnius import JavaException, JavaClass from jnius.reflect import autoclass diff --git a/tests/test_basics.py b/tests/test_basics.py index 18ccc79..d6ebd5c 100644 --- a/tests/test_basics.py +++ b/tests/test_basics.py @@ -1,8 +1,6 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() import unittest from jnius.reflect import autoclass diff --git a/tests/test_bytearray.py b/tests/test_bytearray.py index 9fbca69..50fcd0b 100644 --- a/tests/test_bytearray.py +++ b/tests/test_bytearray.py @@ -1,8 +1,6 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() import unittest from jnius import autoclass diff --git a/tests/test_cast.py b/tests/test_cast.py index 6dcf12f..6562cd9 100644 --- a/tests/test_cast.py +++ b/tests/test_cast.py @@ -1,8 +1,6 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() import unittest from jnius.reflect import autoclass from jnius import cast diff --git a/tests/test_class_argument.py b/tests/test_class_argument.py index 0264383..31f4b40 100644 --- a/tests/test_class_argument.py +++ b/tests/test_class_argument.py @@ -1,8 +1,6 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() import unittest from jnius.reflect import autoclass diff --git a/tests/test_enum.py b/tests/test_enum.py index 1e6edee..d590639 100644 --- a/tests/test_enum.py +++ b/tests/test_enum.py @@ -1,8 +1,6 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() import unittest from jnius.reflect import autoclass diff --git a/tests/test_implementation.py b/tests/test_implementation.py index c6f3d31..81b66be 100644 --- a/tests/test_implementation.py +++ b/tests/test_implementation.py @@ -2,8 +2,6 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() import unittest from jnius.reflect import autoclass diff --git a/tests/test_interface.py b/tests/test_interface.py index 42b2768..1d8282a 100644 --- a/tests/test_interface.py +++ b/tests/test_interface.py @@ -1,8 +1,6 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() import unittest from jnius import autoclass, JavaException diff --git a/tests/test_jnitable_overflow.py b/tests/test_jnitable_overflow.py index cef4b85..0a98bc7 100644 --- a/tests/test_jnitable_overflow.py +++ b/tests/test_jnitable_overflow.py @@ -1,8 +1,6 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() # run it, and check with Java VisualVM if we are eating too much memory or not! if __name__ == '__main__': from jnius import autoclass diff --git a/tests/test_method_multiple_signatures.py b/tests/test_method_multiple_signatures.py index 3f892fd..3e4266f 100644 --- a/tests/test_method_multiple_signatures.py +++ b/tests/test_method_multiple_signatures.py @@ -1,8 +1,6 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() import unittest from jnius.reflect import autoclass diff --git a/tests/test_multidimension.py b/tests/test_multidimension.py index 6ab0fd7..0c4b7de 100644 --- a/tests/test_multidimension.py +++ b/tests/test_multidimension.py @@ -1,8 +1,6 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() import unittest from jnius.reflect import autoclass diff --git a/tests/test_output_args.py b/tests/test_output_args.py index e6a0fff..2547357 100644 --- a/tests/test_output_args.py +++ b/tests/test_output_args.py @@ -1,8 +1,6 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() import unittest from jnius import autoclass diff --git a/tests/test_proxy.py b/tests/test_proxy.py index e8b4337..1ed01b9 100644 --- a/tests/test_proxy.py +++ b/tests/test_proxy.py @@ -1,10 +1,8 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from builtins import super -from future import standard_library -standard_library.install_aliases() -from builtins import range +from six.moves import range + from jnius import autoclass, java_method, PythonJavaClass, cast from nose.tools import * diff --git a/tests/test_reflect.py b/tests/test_reflect.py index 6a166a6..fc6e8c9 100644 --- a/tests/test_reflect.py +++ b/tests/test_reflect.py @@ -1,8 +1,6 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() import unittest from jnius.reflect import autoclass diff --git a/tests/test_simple.py b/tests/test_simple.py index 6855901..edfcd99 100644 --- a/tests/test_simple.py +++ b/tests/test_simple.py @@ -1,11 +1,9 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() import unittest from jnius import JavaClass, MetaJavaClass, JavaMethod -from future.utils import with_metaclass +from six import with_metaclass class HelloWorldTest(unittest.TestCase):