Added a couple tests for #404 (#766)

* Added a couple tests for #404
Co-authored-by: Sylvain MARIE <sylvain.marie@se.com>
This commit is contained in:
Sylvain Marié
2022-08-23 22:41:23 +02:00
committed by GitHub
parent 61132777f8
commit 9236f11757
2 changed files with 90 additions and 1 deletions

9
testing/util.py Normal file
View File

@@ -0,0 +1,9 @@
import warnings
class MyWarning2(UserWarning):
pass
def generate_warning():
warnings.warn(MyWarning2("hello"))