diff options
| author | Barry Warsaw | 2014-12-18 10:27:15 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2014-12-18 10:27:15 -0500 |
| commit | fd87e320611b8a91115f8fabd3583438627cdd92 (patch) | |
| tree | 7865430831d3f715bcd74338ad011d1e7375281a /src | |
| parent | 9beb81b9754ee9b3dbe892b3aaea3ed73cbd2468 (diff) | |
| download | mailman-fd87e320611b8a91115f8fabd3583438627cdd92.tar.gz mailman-fd87e320611b8a91115f8fabd3583438627cdd92.tar.zst mailman-fd87e320611b8a91115f8fabd3583438627cdd92.zip | |
One more test fixed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/app/tests/test_templates.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/app/tests/test_templates.py b/src/mailman/app/tests/test_templates.py index 40ec6d234..c20c98280 100644 --- a/src/mailman/app/tests/test_templates.py +++ b/src/mailman/app/tests/test_templates.py @@ -132,8 +132,8 @@ class TestTemplateLoader(unittest.TestCase): test_text = b'\xe4\xb8\xad' path = os.path.join(self.var_dir, 'templates', 'site', 'it') os.makedirs(path) - with open(os.path.join(path, 'demo.txt'), 'w') as fp: - print(test_text, end='', file=fp) + with open(os.path.join(path, 'demo.txt'), 'wb') as fp: + fp.write(test_text) content = self._loader.get('mailman:///it/demo.txt') self.assertIsInstance(content, six.text_type) self.assertEqual(content, test_text.decode('utf-8')) |
