Compatibility with earlier Python 2.7 versions

Compatibility with Python 2.7 versions older than 2.7.7

* Use Django's constant_time_compare method
* Include sparkpost in test requirements
* Don't use non-public `EnvironmentVarGuard` in tests

Fixes #41
This commit is contained in:
Seb Bacon
2016-11-01 18:24:51 +00:00
committed by Mike Edmunds
parent d54d7ecff5
commit f0589e3338
4 changed files with 9 additions and 12 deletions

View File

@@ -47,7 +47,7 @@ setup(
},
include_package_data=True,
test_suite="runtests.runtests",
tests_require=["mock"],
tests_require=["mock", "sparkpost"],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Programming Language :: Python",