diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-11-04 11:39:24 +0200 |
---|---|---|
committer | Matti Picus <matti.picus@gmail.com> | 2020-11-04 11:39:24 +0200 |
commit | ceb7345c9fd79b0474a928db35b323f39e5a0522 (patch) | |
tree | 985bd725610df9d45985598e6ff4b0b86066b5cd /extra_tests | |
parent | move test (diff) | |
download | pypy-ceb7345c9fd79b0474a928db35b323f39e5a0522.tar.gz pypy-ceb7345c9fd79b0474a928db35b323f39e5a0522.tar.bz2 pypy-ceb7345c9fd79b0474a928db35b323f39e5a0522.zip |
update test
Diffstat (limited to 'extra_tests')
-rw-r--r-- | extra_tests/test_posix_extra.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/extra_tests/test_posix_extra.py b/extra_tests/test_posix_extra.py index fe58ec0a7e..8864f6a13f 100644 --- a/extra_tests/test_posix_extra.py +++ b/extra_tests/test_posix_extra.py @@ -1,4 +1,4 @@ -import py +import pytest import sys, os, subprocess @@ -30,9 +30,8 @@ time.sleep(1.0) """ +@pytest.mark.skipif("not getattr(os, 'fork', None)") def test_thread_fork_file_lock(): - if not hasattr(os, 'fork'): - py.test.skip("requires 'fork'") output = subprocess.check_output([sys.executable, '-u', '-c', CODE]) assert output.splitlines() == [ 'thread started', |