Skip to content

Commit 297ad12

Browse files
auvipyCopilot
andauthored
Update tests/test_model_serializer.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3400651 commit 297ad12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_model_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class Meta:
192192
url_field = URLField\(max_length=100\)
193193
custom_field = ModelField\(model_field=<.*CustomField: custom_field>\)
194194
file_path_field = FilePathField\(path='%s'\)
195-
""" % tempfile.gettempdir().replace('\\', r'\\\\'))
195+
""" % re.escape(tempfile.gettempdir()))
196196

197197
assert re.search(expected, repr(TestSerializer()), re.DOTALL) is not None
198198

0 commit comments

Comments
 (0)