Skip to content

Commit f53a7ac

Browse files
authored
[test] Remove also_with_wasmfs_js. NFC (#23185)
The only different here with `also_with_wasmfs` was that this decorator adds `FORCE_FILESYSTEM`, but the only test to use this decorator was already adding this flag.
1 parent df004b2 commit f53a7ac

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

test/test_core.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -157,23 +157,6 @@ def decorated(f):
157157
return decorated
158158

159159

160-
# Similar to also_with_wasmfs, but also enables the full JS API
161-
def also_with_wasmfs_js(func):
162-
assert callable(func)
163-
164-
@wraps(func)
165-
def decorated(self):
166-
func(self)
167-
print('wasmfs')
168-
if self.get_setting('STANDALONE_WASM'):
169-
self.skipTest("test currently cannot run both with WASMFS and STANDALONE_WASM")
170-
self.set_setting('WASMFS')
171-
self.set_setting('FORCE_FILESYSTEM')
172-
self.emcc_args = self.emcc_args.copy() + ['-DWASMFS']
173-
func(self)
174-
return decorated
175-
176-
177160
def with_asyncify_and_jspi(f):
178161
assert callable(f)
179162

@@ -5757,7 +5740,7 @@ def test_fs_trackingdelegate(self):
57575740
self.do_run_in_out_file_test('fs/test_trackingdelegate.c')
57585741

57595742
@also_with_noderawfs
5760-
@also_with_wasmfs_js
5743+
@also_with_wasmfs
57615744
def test_fs_writeFile(self):
57625745
if self.get_setting('WASMFS'):
57635746
self.set_setting("FORCE_FILESYSTEM")

0 commit comments

Comments
 (0)