Skip to content

Commit 39cdec7

Browse files
committed
[test] Remove duplicate no_wasm64 decorator. NFC
I accidentally duplicated this in emscripten-core#20527
1 parent 9c15c4d commit 39cdec7

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

test/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,9 @@ class RunnerCore(unittest.TestCase, metaclass=RunnerMeta):
611611
def is_wasm(self):
612612
return self.get_setting('WASM') != 0
613613

614+
def is_wasm2js(self):
615+
return not self.is_wasm()
616+
614617
def is_browser_test(self):
615618
return False
616619

test/test_core.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from common import skip_if, needs_dylink, no_windows, no_mac, is_slow_test, parameterized
2929
from common import env_modify, with_env_modify, disabled, flaky, node_pthreads, also_with_wasm_bigint
3030
from common import read_file, read_binary, requires_v8, requires_node, requires_node_canary, compiler_for, crossplatform
31-
from common import with_both_sjlj, also_with_standalone_wasm, can_do_standalone
31+
from common import with_both_sjlj, also_with_standalone_wasm, can_do_standalone, no_wasm64
3232
from common import NON_ZERO, WEBIDL_BINDER, EMBUILDER, PYTHON
3333
import clang_native
3434

@@ -134,14 +134,6 @@ def decorated(f):
134134
return decorated
135135

136136

137-
def no_wasm64(note=''):
138-
assert not callable(note)
139-
140-
def decorated(f):
141-
return skip_if(f, 'is_wasm64', note)
142-
return decorated
143-
144-
145137
def also_with_noderawfs(func):
146138
assert callable(func)
147139

@@ -356,12 +348,6 @@ def is_sanitizing(args):
356348

357349

358350
class TestCoreBase(RunnerCore):
359-
def is_wasm2js(self):
360-
return self.get_setting('WASM') == 0
361-
362-
def is_wasm64(self):
363-
return self.get_setting('MEMORY64')
364-
365351
# A simple check whether the compiler arguments cause optimization.
366352
def is_optimizing(self):
367353
return '-O' in str(self.emcc_args) and '-O0' not in self.emcc_args

0 commit comments

Comments
 (0)