(func)
| 467 | |
| 468 | |
| 469 | def also_with_wasm2js(func): |
| 470 | assert callable(func) |
| 471 | |
| 472 | @wraps(func) |
| 473 | def metafunc(self, with_wasm2js, *args, **kwargs): |
| 474 | assert self.get_setting('WASM') is None |
| 475 | if DEBUG: |
| 476 | print('parameterize:wasm2js=%s' % with_wasm2js) |
| 477 | if with_wasm2js: |
| 478 | self.require_wasm2js() |
| 479 | self.set_setting('WASM', 0) |
| 480 | return func(self, *args, **kwargs) |
| 481 | |
| 482 | parameterize(metafunc, {'': (False,), |
| 483 | 'wasm2js': (True,)}) |
| 484 | return metafunc |
| 485 | |
| 486 | |
| 487 | def can_do_standalone(self, impure=False): |
nothing calls this directly
no test coverage detected