pytest-subprocess 1.5.2__tar.gz → 1.5.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/HISTORY.rst +250 -219
  2. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/LICENSE +22 -22
  3. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/MANIFEST.in +10 -10
  4. {pytest_subprocess-1.5.2/pytest_subprocess.egg-info → pytest_subprocess-1.5.4}/PKG-INFO +804 -725
  5. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/README.rst +487 -455
  6. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/docs/Makefile +20 -20
  7. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/docs/api.rst +22 -22
  8. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/docs/conf.py +78 -69
  9. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/docs/index.rst +48 -48
  10. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/docs/make.bat +35 -35
  11. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/docs/usage.rst +3 -3
  12. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest.ini +7 -5
  13. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess/__init__.py +8 -7
  14. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess/asyncio_subprocess.py +7 -7
  15. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess/exceptions.py +13 -13
  16. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess/fake_popen.py +454 -363
  17. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess/fake_process.py +162 -161
  18. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess/fixtures.py +15 -15
  19. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess/process_dispatcher.py +280 -239
  20. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess/process_recorder.py +63 -63
  21. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess/types.py +20 -20
  22. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess/utils.py +191 -169
  23. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4/pytest_subprocess.egg-info}/PKG-INFO +804 -725
  24. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess.egg-info/SOURCES.txt +1 -0
  25. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess.egg-info/requires.txt +0 -1
  26. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/setup.cfg +18 -18
  27. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/setup.py +82 -79
  28. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/tests/conftest.py +13 -13
  29. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/tests/example_script.py +19 -18
  30. pytest_subprocess-1.5.4/tests/imported_popen_fixture.py +6 -0
  31. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/tests/test_asyncio.py +504 -375
  32. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/tests/test_examples.py +74 -61
  33. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/tests/test_subprocess.py +1403 -1234
  34. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/tests/test_typing.py +10 -9
  35. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/tests/test_utils.py +229 -182
  36. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess/py.typed +0 -0
  37. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess.egg-info/dependency_links.txt +0 -0
  38. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess.egg-info/entry_points.txt +0 -0
  39. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/pytest_subprocess.egg-info/top_level.txt +0 -0
  40. {pytest_subprocess-1.5.2 → pytest_subprocess-1.5.4}/tests/__init__.py +0 -0
@@ -1,219 +1,250 @@
1
- History
2
- =======
3
-
4
- 1.5.2 (2024-07-24)
5
- ------------------
6
-
7
- Bug fixes
8
- ~~~~~~~~~
9
- * `#162 <https://github.com/aklajnert/pytest-subprocess/pull/162>`_: Include tests (and docs) and sdist correctly, and stop installing them to site-packages.
10
-
11
- Other changes
12
- ~~~~~~~~~~~~~
13
- * `#163 <https://github.com/aklajnert/pytest-subprocess/pull/163>`_: Add support for Python 3.12.
14
-
15
- 1.5.1 (2024-07-23)
16
- ------------------
17
-
18
- Other changes
19
- ~~~~~~~~~~~~~
20
- * `#160 <https://github.com/aklajnert/pytest-subprocess/pull/160>`_: Changed pytest entrypoint to avoid error while loading plugin with `-p` argument.
21
- * `#128 <https://github.com/aklajnert/pytest-subprocess/pull/128>`_: Add `tests` directory to sdist.
22
-
23
- 1.5.0 (2023-01-28)
24
- ------------------
25
-
26
- Features
27
- ~~~~~~~~
28
- * `#109 <https://github.com/aklajnert/pytest-subprocess/pull/109>`_: Match also `os.PathLike`.
29
- * `#105 <https://github.com/aklajnert/pytest-subprocess/pull/105>`_: Add program matcher.
30
-
31
- Other changes
32
- ~~~~~~~~~~~~~
33
- * `#110 <https://github.com/aklajnert/pytest-subprocess/pull/110>`_: Produce TypeError on Win Py<3.8 for Path args.
34
-
35
- 1.4.2 (2022-10-02)
36
- ------------------
37
-
38
- Features
39
- ~~~~~~~~
40
- * `#87 <https://github.com/aklajnert/pytest-subprocess/pull/87>`_: Add support for Python 3.11.
41
- * `#80 <https://github.com/aklajnert/pytest-subprocess/pull/80>`_, `#86 <https://github.com/aklajnert/pytest-subprocess/pull/86>`_: The `register()` method returns an auxiliary object that will contain all matching `FakePopen` instances.
42
-
43
- Bug fixes
44
- ~~~~~~~~~
45
- * `#93 <https://github.com/aklajnert/pytest-subprocess/pull/93>`_: Raise callback exceptions on `communicate()` calls.
46
-
47
- Other changes
48
- ~~~~~~~~~~~~~
49
- * `#97 <https://github.com/aklajnert/pytest-subprocess/pull/97>`_: Fixed warnings in tests, treat warnings as errors.
50
- * `#91 <https://github.com/aklajnert/pytest-subprocess/pull/91>`_: Use `sys.executable` instead just `"python"` in tests while invoking python subprocess.
51
- * `#90 <https://github.com/aklajnert/pytest-subprocess/pull/90>`_: Fix documentation build, add CI check for it.
52
-
53
- 1.4.1 (2022-02-09)
54
- ------------------
55
-
56
- Other changes
57
- ~~~~~~~~~~~~~
58
- * `#74 <https://github.com/aklajnert/pytest-subprocess/pull/74>`_: Add ``fp`` alias for the fixture, and ``register`` for the ``regisiter_subprocess``.
59
-
60
- 1.4.0 (2022-01-23)
61
- ------------------
62
-
63
- Features
64
- ~~~~~~~~
65
- * `#71 <https://github.com/aklajnert/pytest-subprocess/pull/71>`_: Add support for stdin with asyncio.
66
-
67
- Bug fixes
68
- ~~~~~~~~~
69
- * `#68 <https://github.com/aklajnert/pytest-subprocess/pull/68>`_: Make `stdout` and `stderr` an `asyncio.StreamReader` instance when using asyncio functions.
70
- * `#63 <https://github.com/aklajnert/pytest-subprocess/pull/63>`_, `#67 <https://github.com/aklajnert/pytest-subprocess/pull/67>`_: Add missing items to `asyncio.subprocess`.
71
-
72
- Other changes
73
- ~~~~~~~~~~~~~
74
- * `#69 <https://github.com/aklajnert/pytest-subprocess/pull/69>`_: Extracted code into separate files to improve navigation.
75
-
76
- 1.3.2 (2021-11-07)
77
- ------------------
78
-
79
- Bug fixes
80
- ~~~~~~~~~
81
- * `#61 <https://github.com/aklajnert/pytest-subprocess/pull/61>`_: Fixed behavior of ``asyncio.create_subproess_exec()``.
82
-
83
- 1.3.1 (2021-11-01)
84
- ------------------
85
-
86
- Bug fixes
87
- ~~~~~~~~~
88
- * `#58 <https://github.com/aklajnert/pytest-subprocess/pull/58>`_: Correctly handle file stream output.
89
-
90
- 1.3.0 (2021-10-24)
91
- ------------------
92
-
93
- Features
94
- ~~~~~~~~
95
- * `#55 <https://github.com/aklajnert/pytest-subprocess/pull/55>`_: Add support for ``terminate()``, ``kill()``, ``send_signal()``.
96
-
97
- 1.2.0 (2021-10-09)
98
- ------------------
99
-
100
- Features
101
- ~~~~~~~~
102
- * `#49 <https://github.com/aklajnert/pytest-subprocess/pull/49>`_, `#52 <https://github.com/aklajnert/pytest-subprocess/pull/52>`_: Add support for ``asyncio``.
103
-
104
- Other changes
105
- ~~~~~~~~~~~~~
106
- * `#50 <https://github.com/aklajnert/pytest-subprocess/pull/50>`_: Change docs theme.
107
-
108
- 1.1.2 (2021-07-17)
109
- ------------------
110
-
111
- Bug fixes
112
- ~~~~~~~~~
113
- * `#47 <https://github.com/aklajnert/pytest-subprocess/pull/47>`_: Prevent `allow_unregistered()` and `keep_last_process()` from affecting other tests.
114
-
115
- 1.1.1 (2021-06-18)
116
- ------------------
117
-
118
- Bug fixes
119
- ~~~~~~~~~
120
- * `#43 <https://github.com/aklajnert/pytest-subprocess/pull/43>`_: Wait for callback thread to finish when calling ``communicate()``.
121
-
122
- Other changes
123
- ~~~~~~~~~~~~~
124
- * `#42 <https://github.com/aklajnert/pytest-subprocess/pull/42>`_: Fix type annotations for `register_subprocess()`.
125
-
126
- 1.1.0 (2021-04-18)
127
- ------------------
128
-
129
- Bug fixes
130
- ~~~~~~~~~
131
- * `#37 <https://github.com/aklajnert/pytest-subprocess/pull/37>`_: Preserve original command in `proc.args` to prevent leaking the internal `Command` type.
132
-
133
- Other changes
134
- ~~~~~~~~~~~~~
135
- * `#38 <https://github.com/aklajnert/pytest-subprocess/pull/38>`_: Switched CI from Azure Pipelines to GitHub Actions.
136
- * `#35 <https://github.com/aklajnert/pytest-subprocess/pull/35>`_: Drop support for python 3.4 and 3.5. Move type annotations from `.pyi` files into sources.
137
-
138
- 1.0.1 (2021-03-20)
139
- ------------------
140
-
141
- Bug fixes
142
- ~~~~~~~~~
143
- * `#34 <https://github.com/aklajnert/pytest-subprocess/pull/34>`_: Prevent appending newlines to outputs unless defined as list/tuple.
144
-
145
- Other changes
146
- ~~~~~~~~~~~~~
147
- * `#32 <https://github.com/aklajnert/pytest-subprocess/pull/32>`_: Make the ``Command`` class iterable.
148
-
149
- 1.0.0 (2020-08-22)
150
- ------------------
151
-
152
- Features
153
- ~~~~~~~~
154
- * `#29 <https://github.com/aklajnert/pytest-subprocess/pull/29>`_: Remember subprocess calls to check if expected commands were executed.
155
- * `#28 <https://github.com/aklajnert/pytest-subprocess/pull/28>`_: Allow to match a command with variable arguments (non-exact matching).
156
-
157
- 0.1.5 (2020-06-19)
158
- ------------------
159
-
160
- Bug fixes
161
- ~~~~~~~~~
162
- * `#26 <https://github.com/aklajnert/pytest-subprocess/pull/26>`_: `encoding` and `errors` arguments will properly trigger `text` mode.
163
-
164
- 0.1.4 (2020-04-28)
165
- ------------------
166
-
167
- Bug fixes
168
- ~~~~~~~~~
169
- * `#22 <https://github.com/aklajnert/pytest-subprocess/pull/22>`_: The `returncode` will not be ignored when `callback` is used.
170
- * `#21 <https://github.com/aklajnert/pytest-subprocess/pull/21>`_: The exception raised from callback will take precedence over those from subprocess.
171
- * `#20 <https://github.com/aklajnert/pytest-subprocess/pull/20>`_: Registering process will be now consistent regardless of the command type.
172
- * `#19 <https://github.com/aklajnert/pytest-subprocess/pull/19>`_: Fixed crash for stderr redirect with an empty stream definition.
173
-
174
- 0.1.3 (2020-03-04)
175
- ------------------
176
-
177
- Features
178
- ~~~~~~~~
179
- * `#13 <https://github.com/aklajnert/pytest-subprocess/pull/13>`_: Allow passing keyword arguments into callbacks.
180
-
181
- Bug fixes
182
- ~~~~~~~~~
183
- * `#12 <https://github.com/aklajnert/pytest-subprocess/pull/12>`_: Properly raise exceptions from callback functions.
184
-
185
- Documentation changes
186
- ~~~~~~~~~~~~~~~~~~~~~
187
- * `#15 <https://github.com/aklajnert/pytest-subprocess/pull/15>`_: Add documentation chapter about the callback functions.
188
-
189
- 0.1.2 (2020-01-17)
190
- ------------------
191
-
192
- Features
193
- ~~~~~~~~
194
- * `#3 <https://github.com/aklajnert/pytest-subprocess/pull/3>`_: Add basic support for process input.
195
-
196
- Bug fixes
197
- ~~~~~~~~~
198
- * `#5 <https://github.com/aklajnert/pytest-subprocess/pull/5>`_: Make ``wait()`` method to raise ``TimeoutError`` after the desired time will elapse.
199
-
200
- Documentation changes
201
- ~~~~~~~~~~~~~~~~~~~~~
202
- * `#7 <https://github.com/aklajnert/pytest-subprocess/pull/7>`_, `#8 <https://github.com/aklajnert/pytest-subprocess/pull/8>`_, `#9 <https://github.com/aklajnert/pytest-subprocess/pull/9>`_: Create Sphinx documentation.
203
-
204
- Other changes
205
- ~~~~~~~~~~~~~
206
- * `#10 <https://github.com/aklajnert/pytest-subprocess/pull/10>`_: Switch from ``tox`` to ``nox`` for running tests and tasks.
207
- * `#4 <https://github.com/aklajnert/pytest-subprocess/pull/4>`_: Add classifier for Python 3.9. Update CI config to test also on that interpreter version.
208
-
209
- 0.1.1 (2019-11-24)
210
- ------------------
211
-
212
- Other changes
213
- ~~~~~~~~~~~~~
214
- * `#1 <https://github.com/aklajnert/pytest-subprocess/pull/1>`_, `#2 <https://github.com/aklajnert/pytest-subprocess/pull/2>`_: Enable support for Python 3.4, add CI tests for that version.
215
-
216
- 0.1.0 (2019-11-23)
217
- ------------------
218
-
219
- Initial release
1
+ History
2
+ =======
3
+
4
+ 1.5.4 (2026-03-21)
5
+ ------------------
6
+
7
+ Features
8
+ ~~~~~~~~
9
+ * `#103 <https://github.com/aklajnert/pytest-subprocess/pull/103>`_: Improve matching commands that contain quoted arguments.
10
+
11
+ Bug fixes
12
+ ~~~~~~~~~
13
+ * `#192 <https://github.com/aklajnert/pytest-subprocess/pull/192>`_: Fix ResourceWarning for unclosed file handles in test_universal_newlines and test_text by explicitly closing process.stdout after reading, preventing intermittent failures on Python 3.12+.
14
+ * `#196 <https://github.com/aklajnert/pytest-subprocess/pull/196>`_: Handle stderr=STDOUT when stdout is a file handle.
15
+ * `#194 <https://github.com/aklajnert/pytest-subprocess/pull/194>`_: Patch imported `subprocess.Popen` aliases.
16
+ * `#186 <https://github.com/aklajnert/pytest-subprocess/pull/186>`_: Support file handles in stdout and stderr.
17
+
18
+ Other changes
19
+ ~~~~~~~~~~~~~
20
+ * `#197 <https://github.com/aklajnert/pytest-subprocess/pull/197>`_: Officially support Python 3.14 and 3.15.
21
+
22
+ 1.5.3 (2025-01-04)
23
+ ------------------
24
+
25
+ Features
26
+ ~~~~~~~~
27
+ * `#171 <https://github.com/aklajnert/pytest-subprocess/pull/171>`_, `#178 <https://github.com/aklajnert/pytest-subprocess/pull/178>`_: Allow to access keyword arguments passed to Popen.
28
+
29
+ Bug fixes
30
+ ~~~~~~~~~
31
+ * `#180 <https://github.com/aklajnert/pytest-subprocess/pull/180>`_: Fixed an incorrect wait timeout calculation.
32
+ * `#170 <https://github.com/aklajnert/pytest-subprocess/pull/170>`_: Wrapped ProcessDispatcher.dispatch into FakePopenWrapper as it was causing TypeError when Popen is used as a type.
33
+ * `#169 <https://github.com/aklajnert/pytest-subprocess/pull/169>`_: Get rid of using thread in AsyncFakePopen as it causes thread.join() to hang indefinitely.
34
+
35
+ 1.5.2 (2024-07-24)
36
+ ------------------
37
+
38
+ Bug fixes
39
+ ~~~~~~~~~
40
+ * `#162 <https://github.com/aklajnert/pytest-subprocess/pull/162>`_: Include tests (and docs) and sdist correctly, and stop installing them to site-packages.
41
+
42
+ Other changes
43
+ ~~~~~~~~~~~~~
44
+ * `#163 <https://github.com/aklajnert/pytest-subprocess/pull/163>`_: Add support for Python 3.12.
45
+
46
+ 1.5.1 (2024-07-23)
47
+ ------------------
48
+
49
+ Other changes
50
+ ~~~~~~~~~~~~~
51
+ * `#160 <https://github.com/aklajnert/pytest-subprocess/pull/160>`_: Changed pytest entrypoint to avoid error while loading plugin with `-p` argument.
52
+ * `#128 <https://github.com/aklajnert/pytest-subprocess/pull/128>`_: Add `tests` directory to sdist.
53
+
54
+ 1.5.0 (2023-01-28)
55
+ ------------------
56
+
57
+ Features
58
+ ~~~~~~~~
59
+ * `#109 <https://github.com/aklajnert/pytest-subprocess/pull/109>`_: Match also `os.PathLike`.
60
+ * `#105 <https://github.com/aklajnert/pytest-subprocess/pull/105>`_: Add program matcher.
61
+
62
+ Other changes
63
+ ~~~~~~~~~~~~~
64
+ * `#110 <https://github.com/aklajnert/pytest-subprocess/pull/110>`_: Produce TypeError on Win Py<3.8 for Path args.
65
+
66
+ 1.4.2 (2022-10-02)
67
+ ------------------
68
+
69
+ Features
70
+ ~~~~~~~~
71
+ * `#87 <https://github.com/aklajnert/pytest-subprocess/pull/87>`_: Add support for Python 3.11.
72
+ * `#80 <https://github.com/aklajnert/pytest-subprocess/pull/80>`_, `#86 <https://github.com/aklajnert/pytest-subprocess/pull/86>`_: The `register()` method returns an auxiliary object that will contain all matching `FakePopen` instances.
73
+
74
+ Bug fixes
75
+ ~~~~~~~~~
76
+ * `#93 <https://github.com/aklajnert/pytest-subprocess/pull/93>`_: Raise callback exceptions on `communicate()` calls.
77
+
78
+ Other changes
79
+ ~~~~~~~~~~~~~
80
+ * `#97 <https://github.com/aklajnert/pytest-subprocess/pull/97>`_: Fixed warnings in tests, treat warnings as errors.
81
+ * `#91 <https://github.com/aklajnert/pytest-subprocess/pull/91>`_: Use `sys.executable` instead just `"python"` in tests while invoking python subprocess.
82
+ * `#90 <https://github.com/aklajnert/pytest-subprocess/pull/90>`_: Fix documentation build, add CI check for it.
83
+
84
+ 1.4.1 (2022-02-09)
85
+ ------------------
86
+
87
+ Other changes
88
+ ~~~~~~~~~~~~~
89
+ * `#74 <https://github.com/aklajnert/pytest-subprocess/pull/74>`_: Add ``fp`` alias for the fixture, and ``register`` for the ``regisiter_subprocess``.
90
+
91
+ 1.4.0 (2022-01-23)
92
+ ------------------
93
+
94
+ Features
95
+ ~~~~~~~~
96
+ * `#71 <https://github.com/aklajnert/pytest-subprocess/pull/71>`_: Add support for stdin with asyncio.
97
+
98
+ Bug fixes
99
+ ~~~~~~~~~
100
+ * `#68 <https://github.com/aklajnert/pytest-subprocess/pull/68>`_: Make `stdout` and `stderr` an `asyncio.StreamReader` instance when using asyncio functions.
101
+ * `#63 <https://github.com/aklajnert/pytest-subprocess/pull/63>`_, `#67 <https://github.com/aklajnert/pytest-subprocess/pull/67>`_: Add missing items to `asyncio.subprocess`.
102
+
103
+ Other changes
104
+ ~~~~~~~~~~~~~
105
+ * `#69 <https://github.com/aklajnert/pytest-subprocess/pull/69>`_: Extracted code into separate files to improve navigation.
106
+
107
+ 1.3.2 (2021-11-07)
108
+ ------------------
109
+
110
+ Bug fixes
111
+ ~~~~~~~~~
112
+ * `#61 <https://github.com/aklajnert/pytest-subprocess/pull/61>`_: Fixed behavior of ``asyncio.create_subproess_exec()``.
113
+
114
+ 1.3.1 (2021-11-01)
115
+ ------------------
116
+
117
+ Bug fixes
118
+ ~~~~~~~~~
119
+ * `#58 <https://github.com/aklajnert/pytest-subprocess/pull/58>`_: Correctly handle file stream output.
120
+
121
+ 1.3.0 (2021-10-24)
122
+ ------------------
123
+
124
+ Features
125
+ ~~~~~~~~
126
+ * `#55 <https://github.com/aklajnert/pytest-subprocess/pull/55>`_: Add support for ``terminate()``, ``kill()``, ``send_signal()``.
127
+
128
+ 1.2.0 (2021-10-09)
129
+ ------------------
130
+
131
+ Features
132
+ ~~~~~~~~
133
+ * `#49 <https://github.com/aklajnert/pytest-subprocess/pull/49>`_, `#52 <https://github.com/aklajnert/pytest-subprocess/pull/52>`_: Add support for ``asyncio``.
134
+
135
+ Other changes
136
+ ~~~~~~~~~~~~~
137
+ * `#50 <https://github.com/aklajnert/pytest-subprocess/pull/50>`_: Change docs theme.
138
+
139
+ 1.1.2 (2021-07-17)
140
+ ------------------
141
+
142
+ Bug fixes
143
+ ~~~~~~~~~
144
+ * `#47 <https://github.com/aklajnert/pytest-subprocess/pull/47>`_: Prevent `allow_unregistered()` and `keep_last_process()` from affecting other tests.
145
+
146
+ 1.1.1 (2021-06-18)
147
+ ------------------
148
+
149
+ Bug fixes
150
+ ~~~~~~~~~
151
+ * `#43 <https://github.com/aklajnert/pytest-subprocess/pull/43>`_: Wait for callback thread to finish when calling ``communicate()``.
152
+
153
+ Other changes
154
+ ~~~~~~~~~~~~~
155
+ * `#42 <https://github.com/aklajnert/pytest-subprocess/pull/42>`_: Fix type annotations for `register_subprocess()`.
156
+
157
+ 1.1.0 (2021-04-18)
158
+ ------------------
159
+
160
+ Bug fixes
161
+ ~~~~~~~~~
162
+ * `#37 <https://github.com/aklajnert/pytest-subprocess/pull/37>`_: Preserve original command in `proc.args` to prevent leaking the internal `Command` type.
163
+
164
+ Other changes
165
+ ~~~~~~~~~~~~~
166
+ * `#38 <https://github.com/aklajnert/pytest-subprocess/pull/38>`_: Switched CI from Azure Pipelines to GitHub Actions.
167
+ * `#35 <https://github.com/aklajnert/pytest-subprocess/pull/35>`_: Drop support for python 3.4 and 3.5. Move type annotations from `.pyi` files into sources.
168
+
169
+ 1.0.1 (2021-03-20)
170
+ ------------------
171
+
172
+ Bug fixes
173
+ ~~~~~~~~~
174
+ * `#34 <https://github.com/aklajnert/pytest-subprocess/pull/34>`_: Prevent appending newlines to outputs unless defined as list/tuple.
175
+
176
+ Other changes
177
+ ~~~~~~~~~~~~~
178
+ * `#32 <https://github.com/aklajnert/pytest-subprocess/pull/32>`_: Make the ``Command`` class iterable.
179
+
180
+ 1.0.0 (2020-08-22)
181
+ ------------------
182
+
183
+ Features
184
+ ~~~~~~~~
185
+ * `#29 <https://github.com/aklajnert/pytest-subprocess/pull/29>`_: Remember subprocess calls to check if expected commands were executed.
186
+ * `#28 <https://github.com/aklajnert/pytest-subprocess/pull/28>`_: Allow to match a command with variable arguments (non-exact matching).
187
+
188
+ 0.1.5 (2020-06-19)
189
+ ------------------
190
+
191
+ Bug fixes
192
+ ~~~~~~~~~
193
+ * `#26 <https://github.com/aklajnert/pytest-subprocess/pull/26>`_: `encoding` and `errors` arguments will properly trigger `text` mode.
194
+
195
+ 0.1.4 (2020-04-28)
196
+ ------------------
197
+
198
+ Bug fixes
199
+ ~~~~~~~~~
200
+ * `#22 <https://github.com/aklajnert/pytest-subprocess/pull/22>`_: The `returncode` will not be ignored when `callback` is used.
201
+ * `#21 <https://github.com/aklajnert/pytest-subprocess/pull/21>`_: The exception raised from callback will take precedence over those from subprocess.
202
+ * `#20 <https://github.com/aklajnert/pytest-subprocess/pull/20>`_: Registering process will be now consistent regardless of the command type.
203
+ * `#19 <https://github.com/aklajnert/pytest-subprocess/pull/19>`_: Fixed crash for stderr redirect with an empty stream definition.
204
+
205
+ 0.1.3 (2020-03-04)
206
+ ------------------
207
+
208
+ Features
209
+ ~~~~~~~~
210
+ * `#13 <https://github.com/aklajnert/pytest-subprocess/pull/13>`_: Allow passing keyword arguments into callbacks.
211
+
212
+ Bug fixes
213
+ ~~~~~~~~~
214
+ * `#12 <https://github.com/aklajnert/pytest-subprocess/pull/12>`_: Properly raise exceptions from callback functions.
215
+
216
+ Documentation changes
217
+ ~~~~~~~~~~~~~~~~~~~~~
218
+ * `#15 <https://github.com/aklajnert/pytest-subprocess/pull/15>`_: Add documentation chapter about the callback functions.
219
+
220
+ 0.1.2 (2020-01-17)
221
+ ------------------
222
+
223
+ Features
224
+ ~~~~~~~~
225
+ * `#3 <https://github.com/aklajnert/pytest-subprocess/pull/3>`_: Add basic support for process input.
226
+
227
+ Bug fixes
228
+ ~~~~~~~~~
229
+ * `#5 <https://github.com/aklajnert/pytest-subprocess/pull/5>`_: Make ``wait()`` method to raise ``TimeoutError`` after the desired time will elapse.
230
+
231
+ Documentation changes
232
+ ~~~~~~~~~~~~~~~~~~~~~
233
+ * `#7 <https://github.com/aklajnert/pytest-subprocess/pull/7>`_, `#8 <https://github.com/aklajnert/pytest-subprocess/pull/8>`_, `#9 <https://github.com/aklajnert/pytest-subprocess/pull/9>`_: Create Sphinx documentation.
234
+
235
+ Other changes
236
+ ~~~~~~~~~~~~~
237
+ * `#10 <https://github.com/aklajnert/pytest-subprocess/pull/10>`_: Switch from ``tox`` to ``nox`` for running tests and tasks.
238
+ * `#4 <https://github.com/aklajnert/pytest-subprocess/pull/4>`_: Add classifier for Python 3.9. Update CI config to test also on that interpreter version.
239
+
240
+ 0.1.1 (2019-11-24)
241
+ ------------------
242
+
243
+ Other changes
244
+ ~~~~~~~~~~~~~
245
+ * `#1 <https://github.com/aklajnert/pytest-subprocess/pull/1>`_, `#2 <https://github.com/aklajnert/pytest-subprocess/pull/2>`_: Enable support for Python 3.4, add CI tests for that version.
246
+
247
+ 0.1.0 (2019-11-23)
248
+ ------------------
249
+
250
+ Initial release
@@ -1,22 +1,22 @@
1
-
2
- The MIT License (MIT)
3
-
4
- Copyright (c) 2019 Andrzej Klajnert
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in
14
- all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- THE SOFTWARE.
1
+
2
+ The MIT License (MIT)
3
+
4
+ Copyright (c) 2019 Andrzej Klajnert
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
@@ -1,10 +1,10 @@
1
- include LICENSE
2
- include README.rst
3
- include HISTORY.rst
4
- include pytest.ini
5
-
6
- recursive-include docs *
7
- recursive-include tests *.py
8
-
9
- recursive-exclude * __pycache__
10
- recursive-exclude * *.py[co]
1
+ include LICENSE
2
+ include README.rst
3
+ include HISTORY.rst
4
+ include pytest.ini
5
+
6
+ recursive-include docs *
7
+ recursive-include tests *.py
8
+
9
+ recursive-exclude * __pycache__
10
+ recursive-exclude * *.py[co]