Commit daf2fa5
committed
test(sessions): Gate the PosixSessionUser repr tests on posix
The binding gates construction on `#[cfg(unix)]` and raises
`RuntimeError: Only available on posix systems.` elsewhere, so the four
tests that build one failed on the Windows matrix: 49 failures, exactly
the 16+16+16+1 cases those tests parametrize.
Mirrors the Rust guard with `os.name`. WindowsSessionUser gets no
counterpart: off the process user it demands a password or a logon token,
so it cannot be built with an arbitrary name just to read its repr.
Signed-off-by: David Leong <116610336+leongdl@users.noreply.github.com>1 parent eba7021 commit daf2fa5
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
| 133 | + | |
131 | 134 | | |
132 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
133 | 143 | | |
134 | 144 | | |
135 | 145 | | |
| |||
158 | 168 | | |
159 | 169 | | |
160 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
161 | 174 | | |
162 | 175 | | |
163 | 176 | | |
| |||
0 commit comments