Skip to content

Commit 403d31b

Browse files
committed
Merge branch 'edit' of https://github.com/tboy1337/pytest-postgresql into edit
2 parents 0cf1075 + 39b6003 commit 403d31b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_windows_compatibility.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ def test_empty_postgres_options(self) -> None:
281281
assert "unix_socket_directories='/tmp/socket'" in command
282282
# Should not have trailing space before closing quote in -o parameter
283283
expected_opts = (
284-
'-o "-F -p 5432 -c log_destination=\'stderr\' '
285-
'-c logging_collector=off -c unix_socket_directories=\'/tmp/socket\'"'
284+
"-o \"-F -p 5432 -c log_destination='stderr' "
285+
"-c logging_collector=off -c unix_socket_directories='/tmp/socket'\""
286286
)
287287
assert expected_opts in command
288288

@@ -723,6 +723,6 @@ def test_windows_mixed_slashes(self) -> None:
723723

724724
command = executor.command
725725
# Paths with backslashes should be properly quoted
726-
assert 'C:\\Program Files\\PostgreSQL\\bin\\pg_ctl.exe start' in command
726+
assert "C:\\Program Files\\PostgreSQL\\bin\\pg_ctl.exe start" in command
727727
assert '-D "C:\\temp\\data"' in command
728728
assert '-l "C:\\temp\\log.txt"' in command

0 commit comments

Comments
 (0)