Hey,
On Wed, Apr 15, 2020 at 03:16:45AM +0530, Anton Shiban wrote:
> Can you please guide me *how to* *clone pytest.Item?*
>
> I want to take one *item* from *items* array (inside function
> ‘pytest_collection_modifyitems’) and clone that *item* and add it to *items*
> array back.
>
> Can someon
*copey with the correct mail*
Hi Shiban,
its not safely possible to clone a item in general.
A) you need to make a new nodeid to prevent some issues
B) there is no safe cloning mechanism declared, different subtypes of
items have different mutable state you dont want to mix
I believe the cl
Hi Ronny,
Thanks a lot for your reply,
I got your points that pytest does have such support.
And also I got your points that I can create new Item which is
reasonably equivalent, but I dont know whether the same code may
continuously work for all future release of PYTEST and it may no