MCPcopy Create free account
hub / github.com/numpy/numpy / test_roundtrip

Function test_roundtrip

numpy/distutils/tests/test_shell_utils.py:71–79  ·  view source on GitHub ↗

Test that split is the inverse operation of join

(Parser, argv)

Source from the content-addressed store, hash-verified

69@pytest.mark.skipif(IS_WASM, reason="Cannot start subprocess")
70@pytest.mark.parametrize('argv', argv_cases)
71def test_roundtrip(Parser, argv):
72 """
73 Test that split is the inverse operation of join
74 """
75 try:
76 joined = Parser.join(argv)
77 assert argv == Parser.split(joined)
78 except NotImplementedError:
79 pytest.skip("Not implemented")

Callers

nothing calls this directly

Calls 2

joinMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected