Skip to content

Commit 2706271

Browse files
committed
test(warnings-recorder): Add another warning
1 parent 8ac3c64 commit 2706271

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testing/test_recwarn.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ class ParentWarning(Warning):
4444
class ChildWarning(ParentWarning):
4545
pass
4646

47+
class RandomWarning(Warning):
48+
pass
49+
4750
def raise_warnings(self):
51+
warnings.warn("Warning Random", self.RandomWarning)
4852
warnings.warn("Warning Child", self.ChildWarning)
4953
warnings.warn("Warning Parent", self.ParentWarning)
5054

0 commit comments

Comments
 (0)