Skip to content

Commit fbee01d

Browse files
committed
TEST: add test to check profiled function maintains original attributes
1 parent 26c18bf commit fbee01d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

test/test_attributes.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from memory_profiler import profile
2+
3+
4+
@profile
5+
def test_with_profile(arg1):
6+
"""dummy doc"""
7+
return None
8+
9+
10+
if __name__ == '__main__':
11+
assert test_with_profile.__doc__ == "dummy doc"
12+
assert test_with_profile.__name__ == "test_with_profile"

0 commit comments

Comments
 (0)