Skip to content

Commit

Permalink
Fix latent usage error
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Jan 8, 2025
1 parent 569e0ba commit d1f3bf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tiled/_tests/test_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ def test_pickle_clients(structure_clients, tmpdir):
httpx.get(API_URL).raise_for_status()
except Exception:
raise pytest.skip(f"Could not connect to {API_URL}")
with Context(API_URL) as context:
cache = Cache(tmpdir / "http_response_cache.db")
with Context(API_URL, cache=cache) as context:
if parse(context.server_info["library_version"]) < parse(MIN_VERSION):
raise pytest.skip(
f"Server at {API_URL} is running too old a version to test against."
)
cache = Cache(tmpdir / "http_response_cache.db")
client = from_context(context, structure_clients, cache)
client = from_context(context, structure_clients)
pickle.loads(pickle.dumps(client))
for segements in [
["generated"],
Expand Down

0 comments on commit d1f3bf9

Please sign in to comment.