Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/celery/billiard
Browse files Browse the repository at this point in the history
  • Loading branch information
auvipy committed Nov 6, 2023
2 parents 9cda164 + db3774c commit a0c581f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 76 deletions.
70 changes: 0 additions & 70 deletions appveyor.yml

This file was deleted.

14 changes: 8 additions & 6 deletions t/integration/tests/test_multiprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
import array
import random
import logging
from nose import SkipTest
from test import test_support
from StringIO import StringIO

import pytest
from test import test_support

try:
from billiard._ext import _billiard
except ImportError as exc:
raise SkipTest(exc)
raise pytest.skip(exc)
# import threading after _billiard to raise a more revelant error
# message: "No module named _billiard". _billiard is not compiled
# without thread support.
Expand All @@ -29,7 +31,7 @@
try:
import billiard.synchronize
except ImportError as exc:
raise SkipTest(exc)
raise pytest.skip(exc)

import billiard.dummy
import billiard.connection
Expand Down Expand Up @@ -508,7 +510,7 @@ def test_task_done(self):
queue = self.JoinableQueue()

if sys.version_info < (2, 5) and not hasattr(queue, 'task_done'):
self.skipTest("requires 'queue.task_done()' method")
pytest.skip("requires 'queue.task_done()' method")

workers = [self.Process(target=self._test_task_done, args=(queue,))
for i in xrange(4)]
Expand Down Expand Up @@ -1987,7 +1989,7 @@ def test_main(run=None):
try:
billiard.RLock()
except OSError:
raise SkipTest("OSError raises on RLock creation, see issue 3111!")
raise pytest.skip("OSError raises on RLock creation, see issue 3111!")

if run is None:
from test.test_support import run_unittest as run
Expand Down

0 comments on commit a0c581f

Please sign in to comment.