| 1 | n/a | """Test cases for test_pyclbr.py""" |
|---|
| 2 | n/a | |
|---|
| 3 | n/a | def f(): pass |
|---|
| 4 | n/a | |
|---|
| 5 | n/a | class Other(object): |
|---|
| 6 | n/a | @classmethod |
|---|
| 7 | n/a | def foo(c): pass |
|---|
| 8 | n/a | |
|---|
| 9 | n/a | def om(self): pass |
|---|
| 10 | n/a | |
|---|
| 11 | n/a | class B (object): |
|---|
| 12 | n/a | def bm(self): pass |
|---|
| 13 | n/a | |
|---|
| 14 | n/a | class C (B): |
|---|
| 15 | n/a | foo = Other().foo |
|---|
| 16 | n/a | om = Other.om |
|---|
| 17 | n/a | |
|---|
| 18 | n/a | d = 10 |
|---|
| 19 | n/a | |
|---|
| 20 | n/a | # XXX: This causes test_pyclbr.py to fail, but only because the |
|---|
| 21 | n/a | # introspection-based is_method() code in the test can't |
|---|
| 22 | n/a | # distinguish between this and a genuine method function like m(). |
|---|
| 23 | n/a | # The pyclbr.py module gets this right as it parses the text. |
|---|
| 24 | n/a | # |
|---|
| 25 | n/a | #f = f |
|---|
| 26 | n/a | |
|---|
| 27 | n/a | def m(self): pass |
|---|
| 28 | n/a | |
|---|
| 29 | n/a | @staticmethod |
|---|
| 30 | n/a | def sm(self): pass |
|---|
| 31 | n/a | |
|---|
| 32 | n/a | @classmethod |
|---|
| 33 | n/a | def cm(self): pass |
|---|