diff --git a/tests/logging_tests/tests.py b/tests/logging_tests/tests.py index da5ef453b1..8a76c0ec49 100644 --- a/tests/logging_tests/tests.py +++ b/tests/logging_tests/tests.py @@ -437,7 +437,7 @@ format=%(message)s self.temp_file.write(logging_conf.encode('utf-8')) self.temp_file.flush() sdict = {'LOGGING_CONFIG': '"logging.config.fileConfig"', - 'LOGGING': '"%s"' % self.temp_file.name} + 'LOGGING': 'r"%s"' % self.temp_file.name} self.write_settings('settings.py', sdict=sdict) def tearDown(self):