8000 Fix SettingsCustomLoggingTest on Windows when path contains \u · alex-python/django@edcb33c · GitHub
[go: up one dir, main page]

Skip to content

Commit edcb33c

Browse files
committed
Fix SettingsCustomLoggingTest on Windows when path contains \u
1 parent dbf7a3d commit edcb33c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/logging_tests/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def setUp(self):
437437
self.temp_file.write(logging_conf.encode('utf-8'))
438438
self.temp_file.flush()
439439
sdict = {'LOGGING_CONFIG': '"logging.config.fileConfig"',
440-
'LOGGING': '"%s"' % self.temp_file.name}
440+
'LOGGING': 'r"%s"' % self.temp_file.name}
441441
self.write_settings('settings.py', sdict=sdict)
442442

443443
def tearDown(self):

0 commit comments

Comments
 (0)
0