diff options
| author | John Vandenberg <jayvdb@gmail.com> | 2019-09-20 01:43:44 +0700 |
|---|---|---|
| committer | Johannes Linke <karyon@users.noreply.github.com> | 2019-09-19 20:43:44 +0200 |
| commit | 1b26e63e3ebce49570e57f6a5233af15278a518b (patch) | |
| tree | b19267547012f8898b816447f9b68fa3d4b0945e | |
| parent | 9e43060ccbd2bc9ca4db09769d6c332266505c3d (diff) | |
| download | django-compressor-1b26e63e3ebce49570e57f6a5233af15278a518b.tar.gz | |
test_base: Use sys.executable (#956)
| -rw-r--r-- | compressor/tests/test_base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compressor/tests/test_base.py b/compressor/tests/test_base.py index 7418047..fcbcf13 100644 --- a/compressor/tests/test_base.py +++ b/compressor/tests/test_base.py @@ -1,6 +1,7 @@ from __future__ import with_statement, unicode_literals import os import re +import sys from tempfile import mkdtemp from shutil import rmtree, copytree @@ -317,7 +318,7 @@ class CssMediaTestCase(SimpleTestCase): self.assertEqual(media, [l.get('media', None) for l in links]) @override_settings(COMPRESS_PRECOMPILERS=( - ('text/foobar', 'python %s {infile} {outfile}' % os.path.join(test_dir, 'precompiler.py')), + ('text/foobar', '%s %s {infile} {outfile}' % (sys.executable, os.path.join(test_dir, 'precompiler.py'))), ), COMPRESS_ENABLED=False) def test_passthough_when_compress_disabled(self): css = """\ |
