Skip to content

Commit 3e62c8e

Browse files
committed
Fixing failing tests and mypy check
1 parent 76e6140 commit 3e62c8e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

sentry_sdk/integrations/ray.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
)
1515

1616
try:
17-
import ray # type: ignore[import-not-found]
17+
import ray
1818
except ImportError:
1919
raise DidNotEnable("Ray not installed.")
2020
import functools
@@ -54,7 +54,6 @@ def new_remote(f=None, *args, **kwargs):
5454

5555
def wrapper(user_f):
5656
# type: (Callable[..., Any]) -> Any
57-
@functools.wraps(user_f)
5857
def new_func(*f_args, _tracing=None, **f_kwargs):
5958
# type: (Any, Optional[dict[str, Any]], Any) -> Any
6059
_check_sentry_initialized()

tests/integrations/ray/test_ray.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ def read_error_from_log(job_id):
5959

6060

6161
@pytest.mark.forked
62-
@pytest.mark.parametrize("task_options", [{}, {"num_cpus": 0}])
62+
@pytest.mark.parametrize(
63+
"task_options", [{}, {"num_cpus": 0, "memory": 1024 * 1024 * 10}]
64+
)
6365
def test_tracing_in_ray_tasks(task_options):
6466
setup_sentry()
6567

0 commit comments

Comments
 (0)