Skip to content

Commit b557966

Browse files
committed
clarify use of pytest-run-parallel marks
1 parent 9f49f5a commit b557966

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_bcrypt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ def test_kdf_no_warn_rounds():
467467
bcrypt.kdf(b"password", b"salt", 10, 10, True)
468468

469469

470+
# Python warning state is global
470471
@pytest.mark.thread_unsafe()
471472
def test_kdf_warn_rounds():
472473
with pytest.warns(UserWarning):
@@ -500,7 +501,8 @@ def test_2a_wraparound_bug():
500501
)
501502

502503

503-
@pytest.mark.thread_unsafe()
504+
# this test spawns threads and is slow, so don't run it in many threads
505+
@pytest.mark.parallel_threads(1)
504506
def test_multithreading():
505507
def get_id():
506508
return uuid.uuid4().bytes

0 commit comments

Comments
 (0)