mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-07-28 13:33:52 +00:00
Refactor test_confusing_decorator_lines
This commit is contained in:
parent
8eef1e3589
commit
619c4406cd
1 changed files with 8 additions and 4 deletions
|
|
@ -197,12 +197,16 @@ def test_file_output():
|
|||
)
|
||||
)
|
||||
|
||||
def test_function_name_finding():
|
||||
def test_confusing_decorator_lines():
|
||||
string_io = io.StringIO()
|
||||
|
||||
def empty_decorator(function):
|
||||
return function
|
||||
@empty_decorator
|
||||
@pysnooper.snoop(string_io,
|
||||
depth = 2
|
||||
# Multiline decorator
|
||||
)
|
||||
depth=2) # Multi-line decorator for extra confusion!
|
||||
@empty_decorator
|
||||
@empty_decorator
|
||||
def my_function(foo):
|
||||
x = lambda bar: 7
|
||||
y = 8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue