diff --git a/tests/test_routers.py b/tests/test_routers.py index ff927ff33..0e45f88e7 100644 --- a/tests/test_routers.py +++ b/tests/test_routers.py @@ -271,7 +271,7 @@ class TestTrailingSlashIncluded(TestCase): self.urls = self.router.urls def test_urls_have_trailing_slash_by_default(self): - expected = ['^notes/$', '^notes/(?P[^/.]+)/$'] + expected = ['^notes/$', '^notes/(?P[^/]+)/$'] for idx in range(len(expected)): assert expected[idx] == get_regex_pattern(self.urls[idx]) @@ -286,7 +286,7 @@ class TestTrailingSlashRemoved(TestCase): self.urls = self.router.urls def test_urls_can_have_trailing_slash_removed(self): - expected = ['^notes$', '^notes/(?P[^/.]+)$'] + expected = ['^notes$', '^notes/(?P[^/]+)$'] for idx in range(len(expected)): assert expected[idx] == get_regex_pattern(self.urls[idx])