diff options
| author | Aymeric Augustin <aymeric.augustin@oscaro.com> | 2015-02-23 18:36:15 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@oscaro.com> | 2015-02-23 18:36:15 +0100 |
| commit | 952ce778c66d2cc01969f0e6ee4edd16becf2e66 (patch) | |
| tree | 4a61b6a68ab1fdf20a0211c8a84ed9184b564e13 /tests/staticfiles_tests | |
| parent | a8fe12417f778a76837f8e4f8503779f52a396ba (diff) | |
Fixed a test failure under Windows and Python 2.
Diffstat (limited to 'tests/staticfiles_tests')
| -rw-r--r-- | tests/staticfiles_tests/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/staticfiles_tests/tests.py b/tests/staticfiles_tests/tests.py index d8750f9e52..c65187d132 100644 --- a/tests/staticfiles_tests/tests.py +++ b/tests/staticfiles_tests/tests.py @@ -106,7 +106,8 @@ class BaseCollectionTestCase(BaseStaticFilesTestCase): self.patched_settings = self.settings(STATIC_ROOT=temp_dir) self.patched_settings.enable() self.run_collectstatic() - self.addCleanup(shutil.rmtree, temp_dir) + # Same comment as in runtests.teardown. + self.addCleanup(shutil.rmtree, six.text_type(temp_dir)) def tearDown(self): self.patched_settings.disable() |
