Mercurial > public > mercurial-scm > hg-stable
comparison tests/test-extensions-wrapfunction.py @ 51749:493034cc3265
black: format the codebase with 23.3.0
The CI has moved to 23.3.0, which is the last version that supports 3.7
at runtime, so we should honor this change.
# skip-blame mass-reformating only
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Thu, 18 Jul 2024 12:36:12 +0200 |
parents | 642e31cb55f0 |
children | 7f0cb9ee0534 |
comparison
equal
deleted
inserted
replaced
51748:39e2b2d062c1 | 51749:493034cc3265 |
---|---|
64 extensions.wrapfunction(dummy, 'getstack', wrappers[2]) | 64 extensions.wrapfunction(dummy, 'getstack', wrappers[2]) |
65 print('context manager', dummy.getstack()) | 65 print('context manager', dummy.getstack()) |
66 print('context manager', dummy.getstack()) | 66 print('context manager', dummy.getstack()) |
67 print('context manager', dummy.getstack()) | 67 print('context manager', dummy.getstack()) |
68 | 68 |
69 | |
69 # Wrap callable object which has no __name__ | 70 # Wrap callable object which has no __name__ |
70 class callableobj: | 71 class callableobj: |
71 def __call__(self): | 72 def __call__(self): |
72 return ['orig'] | 73 return ['orig'] |
73 | 74 |