Commit d530337
committed
Fix output leakage, cross-platform test coverage, and Windows start env/posix
Bug fixes
- executor.py running(): add capture_output=True to subprocess.run so
pg_ctl status output no longer leaks to the terminal on every call;
previously the change from getstatusoutput() dropped the implicit
capture.
- test_windows_compatibility.py: remove the module-level pytestmark
that skipped every test on non-Windows. All tests in the file use
patch() to mock platform.system() and subprocess calls, so none of
them require a real Windows host; the blanket skip was silently hiding
the entire template and process-management test suite from Linux/macOS
CI runs. The unused sys import is removed along with the mark.
Inline comment fixes
- oldest-postgres.yml: narrow the 'install libpq' step condition to
also require runner.os == 'Linux' so 'sudo apt install' is not
attempted on non-Linux runners when the matrix entry contains PyPy.
- executor.py Windows start() branch: build merged_env from
os.environ.copy() updated with self.envvars so system-level PATH and
other vital variables are inherited rather than replaced by the
locale-only dict.
- executor.py Windows start() branch: pass posix=False to
shlex.split(self.startparams) so Windows backslashes in startparams
are treated as literals rather than POSIX escape characters.
Nitpick
- newsfragments/1182.feature.rst: rewrite as a concise user-facing
summary without internal symbol names.
Made-with: Cursor1 parent cc7fe02 commit d530337
4 files changed
Lines changed: 7 additions & 10 deletions
File tree
- .github/workflows
- newsfragments
- pytest_postgresql
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
202 | 204 | | |
203 | | - | |
| 205 | + | |
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
| |||
282 | 284 | | |
283 | 285 | | |
284 | 286 | | |
| 287 | + | |
285 | 288 | | |
286 | 289 | | |
287 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 11 | | |
18 | 12 | | |
19 | 13 | | |
| |||
0 commit comments