Fix SettingsCustomLoggingTest on Windows when path contains \u

This commit is contained in:
Michael Manfre 2014-10-20 21:49:44 -04:00
parent dbf7a3df45
commit edcb33c92e
1 changed files with 1 additions and 1 deletions

View File

@ -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):