From 3275a511c2cd8322c006fc8bb511ca65d3ce1107 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Sun, 24 Jul 2016 23:40:29 -0400 Subject: [PATCH] remove a template test that doesn't test anything @samspyo discovered that this test wasn't testing anything of value, so we're dropping it. --- test/test_template.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/test/test_template.py b/test/test_template.py index 0605675c6..331de0458 100644 --- a/test/test_template.py +++ b/test/test_template.py @@ -17,8 +17,6 @@ """ from __future__ import division, absolute_import, print_function -import warnings - from test._common import unittest from beets.util import functemplate import six @@ -213,13 +211,6 @@ class ParseTest(unittest.TestCase): self._assert_call(arg_parts[0], u"bar", 1) self.assertEqual(list(_normexpr(arg_parts[0].args[0])), [u'baz']) - def test_fail_on_utf8(self): - parts = u'é'.encode('utf8') - warnings.simplefilter("ignore") - with self.assertRaises(UnicodeDecodeError): - functemplate._parse(parts) - warnings.simplefilter("default") - class EvalTest(unittest.TestCase): def _eval(self, template):