Skip to content

Commit

Permalink
less
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Aug 21, 2023
1 parent 18eff80 commit 6a194f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/anndata2ri/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def _conversion_py2rpy_local(conv_mod: ConversionModule, dataset: Any) -> Sexp:

def _conversion_py2rpy_activate(conv_mod: ConversionModule, dataset: Any) -> Sexp: # noqa: ANN401
try:
conv_mod.activate()
with pytest.warns(DeprecationWarning, match=r'global conversion'):
conv_mod.activate()
globalenv['temp'] = dataset
finally:
conv_mod.deactivate()
Expand Down

0 comments on commit 6a194f0

Please sign in to comment.