Commit 602dc0a
authored
Adress pytest socketblocked exception issues (#2324)
### What kind of change does this PR introduce?
* Sets `SocketBlockedError` to a subset of the `Exception` class, so
that if ever it is encountered while `pytest-socket` is not installed
(e.g. in downstream libraries), it doesn't error out during failed HTTP
requests
### Does this PR introduce a breaking change?
No.
### Other information:
This should make it so that downstream libraries do not require
`pytest-socket`, but can still make use of it if they wish to.
Credit for this solution is owed to @aulemahal.2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
0 commit comments