Skip to content

Commit

Permalink
(chore): remove other tempfile import
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan-gold committed May 14, 2024
1 parent 9fc9ab0 commit 27c3d08
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scanpy/tests/test_ingest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from __future__ import annotations

import tempfile

import anndata
import numpy as np
import pytest
Expand Down Expand Up @@ -158,11 +156,11 @@ def test_ingest_map_embedding_umap():
assert np.allclose(ing._obsm["X_umap"], umap_transformed_t)


def test_ingest_backed(adatas):
def test_ingest_backed(adatas, tmp_path):
adata_ref = adatas[0].copy()
adata_new = adatas[1].copy()

tmp_path = tempfile.gettempdir()
tmp_path = tmp_path

adata_new.write_h5ad(f"{tmp_path}/new.h5ad")

Expand Down

0 comments on commit 27c3d08

Please sign in to comment.