- Notifications
You must be signed in to change notification settings - Fork35
Commita7e8fcf

Sofia Kopikova
Catch FileNotFoundError exception
When we want to find some Postgres process in testgres psutils lib first gets list of all system processes (children() function in testgres's auxiliary_processes). Next testgres asks for process name (cmdline() function), so psutils goes to /proc/pid/ in Linux. In case any of processes listed in previous step, we get FileNotFoundError1 parentceb1ee9 commita7e8fcf
2 files changed
+24
-4
lines changedLines changed: 9 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
3 | 4 |
| |
4 | 5 |
| |
5 | 6 |
| |
| |||
68 | 69 |
| |
69 | 70 |
| |
70 | 71 |
| |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
71 | 77 |
| |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 |
| |
77 | 82 |
| |
78 | 83 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| 12 | + | |
12 | 13 |
| |
13 | 14 |
| |
14 | 15 |
| |
| |||
48 | 49 |
| |
49 | 50 |
| |
50 | 51 |
| |
| 52 | + | |
51 | 53 |
| |
52 | 54 |
| |
53 | 55 |
| |
| |||
966 | 968 |
| |
967 | 969 |
| |
968 | 970 |
| |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
969 | 984 |
| |
970 | 985 |
| |
971 | 986 |
| |
|
0 commit comments
Comments
(0)