Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
manopapad committed Aug 12, 2023
1 parent df25f84 commit a162cf6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/unit/cunumeric/test_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ def test_reporting_True_func(

assert wrapped.__name__ == _test_func.__name__
assert wrapped.__qualname__ == _test_func.__qualname__
assert wrapped.__doc__ == _test_func.__doc__
assert wrapped.__doc__ != _test_func.__doc__
assert "not implemented" in wrapped.__doc__
assert wrapped.__wrapped__ is _test_func

assert wrapped(10, 20) == 30
Expand All @@ -234,7 +235,8 @@ def test_reporting_False_func(

assert wrapped.__name__ == _test_func.__name__
assert wrapped.__qualname__ == _test_func.__qualname__
assert wrapped.__doc__ == _test_func.__doc__
assert wrapped.__doc__ != _test_func.__doc__
assert "not implemented" in wrapped.__doc__
assert wrapped.__wrapped__ is _test_func

with pytest.warns(RuntimeWarning) as record:
Expand All @@ -253,7 +255,8 @@ def test_reporting_True_ufunc(
) -> None:
wrapped = m.unimplemented(_test_ufunc, "foo", "_test_ufunc")

assert wrapped.__doc__ == _test_ufunc.__doc__
assert wrapped.__doc__ != _test_ufunc.__doc__
assert "not implemented" in wrapped.__doc__
assert wrapped.__wrapped__ is _test_ufunc

assert wrapped(10, 20) == 30
Expand All @@ -275,7 +278,8 @@ def test_reporting_False_ufunc(
_test_ufunc, "foo", "_test_ufunc", reporting=False
)

assert wrapped.__doc__ == _test_ufunc.__doc__
assert wrapped.__doc__ != _test_ufunc.__doc__
assert "not implemented" in wrapped.__doc__
assert wrapped.__wrapped__ is _test_ufunc

with pytest.warns(RuntimeWarning) as record:
Expand Down

0 comments on commit a162cf6

Please sign in to comment.