File: test_duplicate_functions.py

package info (click to toggle)
python-line-profiler 5.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,256 kB
  • sloc: python: 8,119; sh: 810; ansic: 297; makefile: 14
file content (20 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def test_duplicate_function():
    """
    Test from https://github.com/pyutils/line_profiler/issues/232
    """
    import line_profiler

    class C:
        def f1(self):
            pass

        def f2(self):
            pass

        def f3(self):
            pass

    profile = line_profiler.LineProfiler()
    profile(C.f1)
    profile(C.f2)
    profile(C.f3)