Skip to content

Commit

Permalink
Fix a lint issue and correct xfail.
Browse files Browse the repository at this point in the history
  • Loading branch information
fatcat-z committed Dec 1, 2023
1 parent f52ff11 commit 3d11fbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions onnxscript/tests/function_libs/torch_lib/ops_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def test_output_match_opinfo_(
@ops_test_common.add_decorate_info(
ops_test_data.OPS_DB,
"TestOutputConsistencyEager",
"test_output_match_opinfo_",
"test_complex_output_match_opinfo_",
skip_or_xfails=ops_test_data.EXPECTED_SKIPS_OR_FAILS,
)
@common_device_type.ops( # type: ignore[misc]
Expand Down Expand Up @@ -380,7 +380,7 @@ def test_output_match_opinfo_(
@ops_test_common.add_decorate_info(
ops_test_data.OPS_DB,
"TestOutputConsistencyFullGraph",
"test_output_match_opinfo_",
"test_complex_output_match_opinfo_",
skip_or_xfails=ops_test_data.EXPECTED_SKIPS_OR_FAILS,
)
@common_device_type.ops( # type: ignore[misc]
Expand Down
3 changes: 1 addition & 2 deletions onnxscript/tests/function_libs/torch_lib/ops_test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,7 @@ def _where_input_wrangler(
tolerance={torch.complex64: (3e-3, 1.8e-4)},
trace_only=True,
complex=True,
)
.xfail(
).xfail(
dtypes=(torch.complex64,),
reason="fixme: the result is wrong: https://github.com/microsoft/onnxscript/pull/926",
),
Expand Down

0 comments on commit 3d11fbf

Please sign in to comment.