diff --git a/src/pytest_postgresql/executor.py b/src/pytest_postgresql/executor.py index 2be05254..389e3df9 100644 --- a/src/pytest_postgresql/executor.py +++ b/src/pytest_postgresql/executor.py @@ -144,7 +144,7 @@ def init_directory(self): if self.password: with tempfile.NamedTemporaryFile() as password_file: init_directory += ( - '--pwfile "%s"' % password_file.name + '--pwfile "%s"' % password_file.name, ) password_file.write(self.password) subprocess.check_output(' '.join(init_directory), shell=True)