diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-11-04 00:59:34 -0800 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-11-04 09:59:34 +0100 |
| commit | 607004f81ae3ed082ffcfb2c979d19a7ae3a4122 (patch) | |
| tree | 03377b02fbe5fe4bc1a0f3e76b4a635a0427ae18 /tests/view_tests | |
| parent | 126cfefce2b59900138f2bf1ef6ad966cddc55d4 (diff) | |
Simplified consecutive calls to pathlib.Path.parent.
Diffstat (limited to 'tests/view_tests')
| -rw-r--r-- | tests/view_tests/tests/test_debug.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py index 73430178d7..8e66bb3a03 100644 --- a/tests/view_tests/tests/test_debug.py +++ b/tests/view_tests/tests/test_debug.py @@ -757,7 +757,7 @@ class PlainTextReportTests(SimpleTestCase): exc_type, exc_value, tb = sys.exc_info() reporter = ExceptionReporter(request, exc_type, exc_value, tb) text = reporter.get_traceback_text() - templ_path = Path(Path(__file__).parent.parent, 'templates', 'debug', 'template_error.html') + templ_path = Path(Path(__file__).parents[1], 'templates', 'debug', 'template_error.html') self.assertIn( 'Template error:\n' 'In template %(path)s, error at line 2\n' |
