Skip to content

Commit abfc87a

Browse files
authored
Create test_show_warnings.py
1 parent cb7728a commit abfc87a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/test_show_warnings.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import warnings
2+
3+
4+
def api_v1():
5+
warnings.warn(UserWarning("api v1, should use functions from v2"))
6+
return 1
7+
8+
9+
def test_one():
10+
assert api_v1() == 1

0 commit comments

Comments
 (0)