diff --git a/.travis.yml b/.travis.yml index 3024b02a..a4e6c194 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: python python: - - 3.5 - 3.6 - 3.7 - 3.8 diff --git a/freezegun/api.py b/freezegun/api.py index f308fb6f..91d96fda 100644 --- a/freezegun/api.py +++ b/freezegun/api.py @@ -117,7 +117,7 @@ def _get_module_attributes_hash(module): module_dir = dir(module) except (ImportError, TypeError): module_dir = [] - return '{}-{}'.format(id(module), hash(frozenset(module_dir))) + return f'{id(module)}-{hash(frozenset(module_dir))}' def _get_cached_module_attributes(module): diff --git a/setup.cfg b/setup.cfg index 30d05769..cb21a7e3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -10,7 +10,6 @@ license = Apache 2.0 classifiers = License :: OSI Approved :: Apache Software License Programming Language :: Python :: 3 - Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 @@ -19,7 +18,7 @@ classifiers = [options] packages = freezegun -python_requires = >=3.5 +python_requires = >=3.6 install_requires = python-dateutil >= 2.7 include_package_data = true diff --git a/tests/test_warnings.py b/tests/test_warnings.py index 73ef3ed7..5ee32ae4 100644 --- a/tests/test_warnings.py +++ b/tests/test_warnings.py @@ -33,7 +33,7 @@ class ModuleWithWarning: def attribute_that_emits_a_warning(self): # Use unique warning messages to avoid messages being only reported once self.__class__.counter += 1 - warnings.warn('this is test warning #{counter}'.format(counter=self.__class__.counter)) + warnings.warn(f'this is test warning #{self.__class__.counter}') self.warning_triggered = True diff --git a/tox.ini b/tox.ini index 7a3b15e8..6c6da20a 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py35, py36, py37, py38, pypy3, py{38}-mypy +envlist = py36, py37, py38, pypy3, py{38}-mypy [testenv] commands = pytest --cov {posargs}