Skip to content

Commit dabb7ec

Browse files
committed
dev: Make CI pass the tests too
1 parent a16d75f commit dabb7ec

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

tests/example_timeouts/expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ _______* ERROR at setup of test_seven ____*
7373
E AssertionError: Took too long to complete: */example_timeouts*/conftest.py:13
7474
_______* ERROR at teardown of test_seven ____*
7575
+ Exception Group Traceback (most recent call last):
76-
| exceptiongroup.ExceptionGroup: errors during test teardown (2 sub-exceptions)
76+
|*ExceptionGroup: errors during test teardown (2 sub-exceptions)
7777
+-+---------------- 1 ----------------
7878
| Traceback (most recent call last):
7979
| AssertionError: Took too long to complete: */conftest.py:20

tests/test_examples.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import signal
77
import socket
88
import subprocess
9+
import sys
910
import tempfile
1011
from contextlib import contextmanager
1112

@@ -88,6 +89,7 @@ def mktemp(s, p, **kwargs):
8889

8990

9091
@pytest.mark.async_timeout(5)
92+
@pytest.mark.skipif(os.name == "nt", reason="Can't use async subprocess on windows")
9193
async it "cleans up tests properly on interrupt":
9294
directory = os.path.join(this_dir, "interrupt_test")
9395
expected_file = os.path.join(directory, "expected")
@@ -98,7 +100,9 @@ def mktemp(s, p, **kwargs):
98100
expected = fle.read().strip()
99101

100102
p = await asyncio.create_subprocess_exec(
101-
shutil.which("pytest"),
103+
sys.executable,
104+
"-m",
105+
"pytest",
102106
cwd=directory,
103107
stdout=subprocess.PIPE,
104108
stderr=subprocess.STDOUT,

tools/requirements.dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ pylama-dmypy==0.4
22
pylama==8.4.1
33
neovim==0.3.1
44
tox==4.4.11
5-
isort==5.12.0
5+
isort==5.11.5
66
python-lsp-server==1.7.2
77
pylsp-mypy==0.6.6
88
pyls-isort==0.2.2

0 commit comments

Comments
 (0)