diff options
author | Federico Caselli <cfederico87@gmail.com> | 2021-09-13 23:09:06 +0200 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2021-10-23 11:11:48 +0200 |
commit | a1d70afb5974125a1a65f590418c7c371bbdb3e6 (patch) | |
tree | 0f4d4ef4170e963aa6784a222e192d16ba753e21 /test/test_util.py | |
parent | 09cf4f68a7f7f63c2f249d61d7cc6600afe12c1a (diff) | |
download | mako-workflow_test_initial_1_2.tar.gz |
Modernize codeworkflow_test_initial_1_2
- 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_util.py')
-rw-r--r-- | test/test_util.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_util.py b/test/test_util.py index 319a8c4..78096c1 100644 --- a/test/test_util.py +++ b/test/test_util.py @@ -7,7 +7,6 @@ import unittest from mako import compat from mako import exceptions from mako import util -from mako.compat import u from test import assert_raises_message from test import eq_ from test import skip_if @@ -30,7 +29,7 @@ class UtilTest(unittest.TestCase): eq_(buf.getvalue(), "string c string d") def test_fast_buffer_encoded(self): - s = u("drôl m’a rée « S’il") + s = ("drôl m’a rée « S’il") buf = util.FastEncodingBuffer(encoding="utf-8") buf.write(s[0:10]) buf.write(s[10:]) @@ -39,7 +38,7 @@ class UtilTest(unittest.TestCase): def test_read_file(self): fn = os.path.join(os.path.dirname(__file__), "test_util.py") data = util.read_file(fn, "rb") - assert "test_util" in str(data) # str() for py3k + assert b"test_util" in data @skip_if(lambda: compat.pypy, "Pypy does this differently") def test_load_module(self): |