Skip to content

Commit f185919

Browse files
committed
test suite fixes
1 parent 3a1fbf2 commit f185919

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ Also, it requires Clang/LLVM to be installed.
8282

8383
## Testing
8484

85-
Install package `pytest-xdist`:
85+
Install the packages `pytest`, `pytest-xdist`, and `flit`:
8686
```
87-
python3 -m pip install pytest-xdist
87+
python3 -m pip install pytest==7.1.3 pytest-xdist==2.4.0
8888
```
8989

90-
Install the library:
90+
Next, install this project:
9191
```
9292
python3 -m pip install .
9393
```

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ pybind11-mkdoc = "pybind11_mkdoc:main"
2626

2727
[tool.flit.metadata.requires-extra]
2828
test = [
29-
"pytest",
29+
"pytest==7.1.3",
3030
"pybind11",
31-
"pytest-xdist",
31+
"pytest-xdist==2.4.0",
3232
]
3333

tests/sample_header_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_generate_headers(capsys):
2727
2828
#define __EXPAND(x) x
2929
#define __COUNT(_1, _2, _3, _4, _5, _6, _7, COUNT, ...) COUNT
30-
#define __VA_SIZE(...) __EXPAND(__COUNT(__VA_ARGS__, 7, 6, 5, 4, 3, 2, 1))
30+
#define __VA_SIZE(...) __EXPAND(__COUNT(__VA_ARGS__, 7, 6, 5, 4, 3, 2, 1, 0))
3131
#define __CAT1(a, b) a ## b
3232
#define __CAT2(a, b) __CAT1(a, b)
3333
#define __DOC1(n1) __doc_##n1

0 commit comments

Comments
 (0)