Skip to content

Commit

Permalink
Set multiprocessing in test case with error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
no0p committed Feb 28, 2025
1 parent 056bc34 commit 41e42a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/python/test_code_composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ def baz():

class TestDolmaCodeProseCompositionClassifier(TestCase):
def setUp(self) -> None:
multiprocessing.set_start_method("spawn")
try:
multiprocessing.set_start_method("spawn")
except Exception:
pass

self.code_composition_tagger = CodeProseCompositionClassifier()

def test_prose_text(self):
Expand Down

0 comments on commit 41e42a6

Please sign in to comment.