diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-07-27 12:01:10 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-07-27 12:34:21 -0400 |
commit | 338cad687a1f49b021e81d33fd16847a4c5c7731 (patch) | |
tree | ceb6b8a2574a950705b8421913fe380a797d05a6 /test/__init__.py | |
parent | a79fbaad5fe507e6fce76c891d0793444be6d6e1 (diff) | |
download | external_python_mako-338cad687a1f49b021e81d33fd16847a4c5c7731.tar.gz external_python_mako-338cad687a1f49b021e81d33fd16847a4c5c7731.tar.bz2 external_python_mako-338cad687a1f49b021e81d33fd16847a4c5c7731.zip |
Bump Python versions, remove conditional imports
Mako 1.1 now supports Python versions:
* 2.7
* 3.4 and higher
This includes that setup.py no longer includes any conditionals, allowing
for a pure Python wheel build, however this is not necessarily part of the
Pypi release process as of yet. The test suite also raises for Python
deprecation warnings.
Fixes: #249
Replaced usage of ``inspect.getfullargspec()`` with the vendored version
used by SQLAlchemy, Alembic to avoid future deprecation warnings. Also
cleans up an additional version of the same function that's apparently
been floating around for some time.
Fixes: #295
Change-Id: I98274c16b6022289d1890f4daf532bab323ab112
Diffstat (limited to 'test/__init__.py')
-rw-r--r-- | test/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/__init__.py b/test/__init__.py index b91e709..c5c9e91 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -6,7 +6,6 @@ import unittest from mako import compat from mako.cache import CacheImpl from mako.cache import register_plugin -from mako.compat import py33 from mako.compat import py3k from mako.template import Template from mako.util import update_wrapper @@ -106,7 +105,7 @@ def teardown(): shutil.rmtree(module_base, True) -if py33: +if py3k: from unittest import mock # noqa else: import mock # noqa |