From e0f370364adc5d0dc3d7e4f678599c76868e29b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Wed, 30 Dec 2015 18:19:21 +0100 Subject: [PATCH] Fixed #26017 -- Removed a dependency on the name of the top-level tests directory. --- tests/forms_tests/tests/test_fields.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/forms_tests/tests/test_fields.py b/tests/forms_tests/tests/test_fields.py index 7fae0bdfc2..80e17881ef 100644 --- a/tests/forms_tests/tests/test_fields.py +++ b/tests/forms_tests/tests/test_fields.py @@ -1574,7 +1574,7 @@ class FieldsTests(SimpleTestCase): f = FilePathField(path=path, allow_folders=True, allow_files=False) f.choices.sort() expected = [ - ('/tests/forms_tests/tests/filepath_test_files/directory', 'directory'), + ('/forms_tests/tests/filepath_test_files/directory', 'directory'), ] for exp, got in zip(expected, fix_os_paths(f.choices)): self.assertEqual(exp[1], got[1]) @@ -1583,12 +1583,12 @@ class FieldsTests(SimpleTestCase): f = FilePathField(path=path, allow_folders=True, allow_files=True) f.choices.sort() expected = [ - ('/tests/forms_tests/tests/filepath_test_files/.dot-file', '.dot-file'), - ('/tests/forms_tests/tests/filepath_test_files/1x1.bmp', '1x1.bmp'), - ('/tests/forms_tests/tests/filepath_test_files/1x1.png', '1x1.png'), - ('/tests/forms_tests/tests/filepath_test_files/directory', 'directory'), - ('/tests/forms_tests/tests/filepath_test_files/fake-image.jpg', 'fake-image.jpg'), - ('/tests/forms_tests/tests/filepath_test_files/real-text-file.txt', 'real-text-file.txt'), + ('/forms_tests/tests/filepath_test_files/.dot-file', '.dot-file'), + ('/forms_tests/tests/filepath_test_files/1x1.bmp', '1x1.bmp'), + ('/forms_tests/tests/filepath_test_files/1x1.png', '1x1.png'), + ('/forms_tests/tests/filepath_test_files/directory', 'directory'), + ('/forms_tests/tests/filepath_test_files/fake-image.jpg', 'fake-image.jpg'), + ('/forms_tests/tests/filepath_test_files/real-text-file.txt', 'real-text-file.txt'), ] actual = fix_os_paths(f.choices)