From 1d3dd33cbb4eb206f2c6d9ff2a78ee3b84a22764 Mon Sep 17 00:00:00 2001 From: Andrew Ekstedt Date: Sat, 29 Sep 2018 11:56:40 -0700 Subject: [PATCH] Sigh, fix Python 3 syntax Python 3 doesn't allow the ur'' prefix for raw unicode strings. We want a unicode string here so that we get a unicode regexp, so drop the r and do the escaping explicitly (the regexp in question is pretty simple, fortunately). --- pokedex/tests/test_database_sanity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokedex/tests/test_database_sanity.py b/pokedex/tests/test_database_sanity.py index b65f20f..0415fed 100644 --- a/pokedex/tests/test_database_sanity.py +++ b/pokedex/tests/test_database_sanity.py @@ -96,7 +96,7 @@ def test_default_forms(session): elif num_default_pokemon > 1: pytest.fail("species %s has %d default pokemon" % (species.name, num_default_pokemon)) -ROUTE_RE = re.compile(ur'route-\d+') +ROUTE_RE = re.compile(u'route-\\d+') def test_location_identifiers(session): """Check that location identifiers for some common locations are prefixed