Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 20, 2024
1 parent 7c1c81b commit 028b373
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1812,7 +1812,7 @@ async def test_spawn_pending_pods(kube_ns, kube_client):
c.KubeSpawner.start_timeout = 5 # Do not wait very long.
spawner = KubeSpawner(hub=Hub(), user=MockUser(), config=c)
with pytest.raises(TimeoutError) as te:
await spawner.start()
await spawner.start()
assert 'pod/jupyter-fake did not start' in str(te.value)

pods = kube_client.list_namespaced_pod(kube_ns).items
Expand All @@ -1838,7 +1838,7 @@ async def test_spawn_watcher_reflector_started_twice(config):

with pytest.raises(ValueError) as ve:
spawner.pod_reflector.start()
assert ('Thread watching for resources is already running' in str(ve.value))
assert 'Thread watching for resources is already running' in str(ve.value)
await spawner.stop()


Expand Down Expand Up @@ -1873,4 +1873,4 @@ async def test_stop_pod_reflector(kube_ns, kube_client):
await spawner.stop()

# Pod reflector is running again.
assert not spawner.pod_reflector._stop_event.is_set()
assert not spawner.pod_reflector._stop_event.is_set()

0 comments on commit 028b373

Please sign in to comment.