Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Bug: any_exception_class might override existing class #2093

Open
l0b0 opened this issue Sep 30, 2022 · 0 comments
Open

Bug: any_exception_class might override existing class #2093

l0b0 opened this issue Sep 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@l0b0
Copy link
Contributor

l0b0 commented Sep 30, 2022

Bug Description

any_exception_class should check whether the class name exists before creating it. Right now there's a tiny but non-zero chance that it overrides an existing class, which could wreak havoc on subsequent tests within the same Python runtime instance and which might be really hard to debug.

How to Reproduce

  1. Run a whole bunch of tests with different seeds.

What did you expect to happen? any_exception_class should not ever override an existing class.

What actually happened? any_exception_class will sometimes override an existing class.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant