Skip to content

Commit

Permalink
Add pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
danijar committed Jul 31, 2024
1 parent 0d0a1d7 commit 0964929
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[tool.pytest.ini_options]
addopts = ['--strict-config', '-ra']
pythonpath = ['.']
testpaths = ['tests']

3 changes: 0 additions & 3 deletions tests/test_process.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import multiprocessing as mp
import pathlib
import sys
import time
import traceback

sys.path.append(str(pathlib.Path(__file__).parent.parent))

import pytest
import zerofun

Expand Down
4 changes: 0 additions & 4 deletions tests/test_server.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import pathlib
import queue
import sys
import threading
import time

sys.path.append(str(pathlib.Path(__file__).parent.parent))

import elements
import numpy as np
import pytest
Expand Down
5 changes: 1 addition & 4 deletions tests/test_thread.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import pathlib
import queue
import sys
import time
import traceback

sys.path.append(str(pathlib.Path(__file__).parent.parent))

import pytest
import zerofun

Expand Down Expand Up @@ -46,6 +42,7 @@ def test_exitcode(self):
def test_exception(self):
def fn1234(q):
q.put(42)
time.sleep(0.01)
raise KeyError('foo')

Check failure on line 46 in tests/test_thread.py

View workflow job for this annotation

GitHub Actions / build (3.9)

foo

Check failure on line 46 in tests/test_thread.py

View workflow job for this annotation

GitHub Actions / build (3.10)

foo

Check failure on line 46 in tests/test_thread.py

View workflow job for this annotation

GitHub Actions / build (3.11)

foo
q = queue.SimpleQueue()
worker = zerofun.Thread(fn1234, q, start=True)
Expand Down

0 comments on commit 0964929

Please sign in to comment.