From bdaafdb14726dd8a54a8e98f2f740c0f0654610a Mon Sep 17 00:00:00 2001 From: Peter Kessen Date: Mon, 22 Feb 2016 09:11:21 +0100 Subject: [PATCH] Removed unicode_literals from test_dbcore --- test/test_dbcore.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/test_dbcore.py b/test/test_dbcore.py index 39b7eea1e..0a2537337 100644 --- a/test/test_dbcore.py +++ b/test/test_dbcore.py @@ -15,8 +15,7 @@ """Tests for the DBCore database abstraction. """ -from __future__ import (division, absolute_import, print_function, - unicode_literals) +from __future__ import (division, absolute_import, print_function) import os import shutil @@ -313,7 +312,7 @@ class ModelTest(unittest.TestCase): def test_computed_field(self): model = TestModelWithGetters() self.assertEqual(model.aComputedField, 'thing') - with self.assertRaisesRegexp(KeyError, 'computed field .+ deleted'): + with self.assertRaisesRegexp(KeyError, u'computed field .+ deleted'): del model.aComputedField def test_items(self): @@ -329,7 +328,7 @@ class ModelTest(unittest.TestCase): model._db def test_parse_nonstring(self): - with self.assertRaisesRegexp(TypeError, "must be a string"): + with self.assertRaisesRegexp(TypeError, u"must be a string"): dbcore.Model._parse(None, 42)