Commit fc6cddf
committed
Simplify test_id generation to support tests running in parallel
Generating monotonically increasing number for test_id only works
when tests are run sequentially. To support running in parallel,
let's just use pytest's request.node.nodeid attribute to get the
same behavior we had before using unittest.TestCase.id (e.g.
cudapy/test_foo.py::TestFoo::test_foo1)1 parent 57ee07d commit fc6cddf
2 files changed
Lines changed: 3 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
| 226 | + | |
| 227 | + | |
231 | 228 | | |
232 | 229 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
| 230 | + | |
237 | 231 | | |
238 | 232 | | |
239 | 233 | | |
| |||
This file was deleted.
0 commit comments