Skip to content

Commit f4439c8

Browse files
committed
Register the thread_unsefe mark
1 parent 9aab353 commit f4439c8

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

numexpr/tests/test_numexpr.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
import platform
1515
import subprocess
1616
import sys
17-
import unittest
1817
import warnings
1918
from contextlib import contextmanager
20-
from unittest.mock import MagicMock
2119

2220
import numpy
2321
import numpy as np
@@ -37,6 +35,9 @@
3735
from numexpr.expressions import ConstantNode
3836
from numexpr.utils import detect_number_of_cores
3937

38+
import unittest
39+
from unittest.mock import MagicMock
40+
4041
try:
4142
import pytest
4243
pytest_available = True

pytest.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[pytest]
2+
markers =
3+
thread_unsafe: mark a test as thread unsafe

0 commit comments

Comments
 (0)