[issue18765] unittest needs a way to launch pdb.post_mortem or other debug hooks

2021-05-19 Thread Dominik Vilsmeier
Dominik Vilsmeier added the comment: I wasn't aware of this issue so apparently I submitted a duplicate (#42722) half a year ago. The solution I implemented relies on simply calling `TestCase.debug` and `TestSuite.debug` which makes it a lightweight change. From the perspective

[issue43443] Should shelve support dict union?

2021-03-09 Thread Dominik Vilsmeier
Dominik Vilsmeier added the comment: It's true, having `__ior__` but not `__or__` would probably be weird. In the end it's just "nice to have", but I'm not even sure that this applies. Calling `db.update(...)` is still more explicit than `db |= ...`. The docs mention that &g

[issue43443] Should shelve support dict union?

2021-03-09 Thread Dominik Vilsmeier
Dominik Vilsmeier added the comment: Right, that seems like a good idea. But `__ior__` could be implemented nevertheless? -- ___ Python tracker <https://bugs.python.org/issue43

[issue43443] Should shelve support dict union?

2021-03-09 Thread Dominik Vilsmeier
New submission from Dominik Vilsmeier : The docs of shelve mention that > Shelf objects support all methods supported by dictionaries. This eases the > transition from dictionary based scripts to those requiring persistent > storage. However the `|=` operator is not implemented, p

[issue42722] Add --debug command line option to unittest to enable post-mortem debugging

2021-01-22 Thread Dominik Vilsmeier
Dominik Vilsmeier added the comment: Is anybody interested in reviewing the PR? It seems like a useful enhancement to me. -- versions: +Python 3.10 ___ Python tracker <https://bugs.python.org/issue42