Skip to content

Commit

Permalink
Add Python 3.12 to build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
danijar committed Sep 12, 2024
1 parent c04d078 commit 6770465
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 3
timeout-minutes: 5
strategy:
fail-fast: False
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Install Python
Expand Down
6 changes: 1 addition & 5 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,10 @@ def test_future_cleanup(self, repeat):
server = portal.Server(port)
server.bind('fn', lambda x: x)
server.start(block=False)
client = portal.Client('localhost', port)
client = portal.Client('localhost', port, maxinflight=1)
client.fn(1)
client.fn(2)
# Wait for the server to respond to the first two requests, so that all
# futures are inside the client by the time we block on the third future.
time.sleep(0.1)
future3 = client.fn(3)
assert len(client.futures) == 1
assert future3.result() == 3
del future3
assert len(client.futures) == 0
Expand Down

0 comments on commit 6770465

Please sign in to comment.