summaryrefslogtreecommitdiff
path: root/test/test_cache.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2021-09-13 23:09:06 +0200
committerFederico Caselli <cfederico87@gmail.com>2021-10-23 11:11:48 +0200
commita1d70afb5974125a1a65f590418c7c371bbdb3e6 (patch)
tree0f4d4ef4170e963aa6784a222e192d16ba753e21 /test/test_cache.py
parent09cf4f68a7f7f63c2f249d61d7cc6600afe12c1a (diff)
downloadmako-workflow_test_initial_1_2.tar.gz
- remove python 2 support - add github workflows - remove disable unicode - cleanup compat file - modernize setup - use pep517 Change-Id: Ic38dbf478046cec5d0815b468f0c235b4ea5e20c
Diffstat (limited to 'test/test_cache.py')
-rw-r--r--test/test_cache.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/test_cache.py b/test/test_cache.py
index d662872..7c6e3a5 100644
--- a/test/test_cache.py
+++ b/test/test_cache.py
@@ -4,7 +4,6 @@ import unittest
from mako import lookup
from mako.cache import CacheImpl
from mako.cache import register_plugin
-from mako.compat import py27
from mako.ext import beaker_cache
from mako.lookup import TemplateLookup
from mako.template import Template
@@ -17,7 +16,7 @@ if beaker_cache.has_beaker:
import beaker
-class SimpleBackend(object):
+class SimpleBackend:
def __init__(self):
self.cache = {}
@@ -601,7 +600,7 @@ class CacheTest(TemplateTest):
assert m.kwargs["context"].get("x") == "bar"
-class RealBackendTest(object):
+class RealBackendTest:
def test_cache_uses_current_context(self):
t = Template(
"""
@@ -650,8 +649,6 @@ class BeakerCacheTest(RealBackendTest, CacheTest):
def setUp(self):
if not beaker_cache.has_beaker:
raise unittest.SkipTest("Beaker is required for these tests.")
- if not py27:
- raise unittest.SkipTest("newer beakers not working w/ py26")
def _install_mock_cache(self, template, implname=None):
template.cache_args["manager"] = self._regions()