From 2ab7b64d8bae2c91693ea269f80427adc8e3576a Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 23 Aug 2017 15:05:11 -0400 Subject: [PATCH] fix tests for python 2.7 support Signed-off-by: Doug Hellmann --- whereto/tests/test_parser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/whereto/tests/test_parser.py b/whereto/tests/test_parser.py index 59c4d5e..ff810fa 100644 --- a/whereto/tests/test_parser.py +++ b/whereto/tests/test_parser.py @@ -26,7 +26,7 @@ class TestParseRules(base.TestCase): return list(parser.parse_rules(input)) def test_skip_comments(self): - input = """ + input = u""" # """ self.assertEqual( @@ -35,7 +35,7 @@ class TestParseRules(base.TestCase): ) def test_skip_blank_lines(self): - input = """ + input = u""" """ self.assertEqual( @@ -44,7 +44,7 @@ class TestParseRules(base.TestCase): ) def test_no_quotes(self): - input = """ + input = u""" redirect /path /new/path """ self.assertEqual( @@ -53,7 +53,7 @@ class TestParseRules(base.TestCase): ) def test_strip_quotes(self): - input = """ + input = u""" redirectmatch 301 "^/releases.*$" http://releases.openstack.org$1 """ self.assertEqual(