test(warnings-recorder): Add another warning

This commit is contained in:
Lesnek 2023-07-02 15:03:15 +02:00 committed by Milan Lesnek
parent 8ac3c645fa
commit 2706271f66
1 changed files with 4 additions and 0 deletions

View File

@ -44,7 +44,11 @@ class TestSubclassWarningPop:
class ChildWarning(ParentWarning):
pass
class RandomWarning(Warning):
pass
def raise_warnings(self):
warnings.warn("Warning Random", self.RandomWarning)
warnings.warn("Warning Child", self.ChildWarning)
warnings.warn("Warning Parent", self.ParentWarning)