Message264452
Currently doctest makes shallow copies of the environment or globs argument. This is somewhat un-symmetrical: on the one hand, a test cannot see variables created by another, but on the other, it can alter mutable objects. This is inconvenient e.g. when documenting several methods that change an object (say, obj.append() , then obj.insert() - one would hope that the results are independent on the order tests are executed ).
An option to make deep copies of the variables in the context, instead of shallow ones, would in my opinion solve the issue cleanly. |
|
Date |
User |
Action |
Args |
2016-04-28 22:25:26 | DqASe | set | recipients:
+ DqASe |
2016-04-28 22:25:26 | DqASe | set | messageid: <1461882326.3.0.694986363749.issue26878@psf.upfronthosting.co.za> |
2016-04-28 22:25:26 | DqASe | link | issue26878 messages |
2016-04-28 22:25:26 | DqASe | create | |
|