Skip to content

Commit 26b5195

Browse files
committed
13403: Disable assertion rewriting for external modules - add tests
1 parent 85ea100 commit 26b5195

File tree

1 file changed

+4
-0
lines changed
  • testing/example_scripts/rewrite/src

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
"""Stub file for testing"""
2+
13
from __future__ import annotations
24

35

46
def func(x: int, y: int) -> int:
7+
"""Stub function"""
8+
assert (x) > 0
59
return 0 if x == y else 1 if x > y else -1

0 commit comments

Comments
 (0)