Skip to content

Commit 1295fa1

Browse files
committed
Filter test warnings
1 parent 8ba07ee commit 1295fa1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
src_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
55
sys.path.extend([
6-
os.path.join(src_dir, 'resiliparse'),
7-
os.path.join(src_dir, 'fastwarc')
6+
os.path.join(src_dir, 'resiliparse-py'),
7+
os.path.join(src_dir, 'fastwarc-py')
88
])
99

1010
if sys.platform == 'win32' and sys.version_info.minor >= 8:

tests/resiliparse/beam/test_elasticsearch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def test_bulk_actions():
9898

9999

100100
@pytest.mark.slow
101+
@pytest.mark.filterwarnings('ignore::pytest.PytestUnhandledThreadExceptionWarning')
101102
def test_bulk_index_with_error():
102103
# With client error
103104
global MOCK_RETURN_CODE
@@ -134,6 +135,7 @@ def test_bulk_index_with_error():
134135

135136

136137
@pytest.mark.slow
138+
@pytest.mark.filterwarnings('ignore::pytest.PytestUnhandledThreadExceptionWarning')
137139
def test_bulk_kv_pairs():
138140
docs = [
139141
('doc1', {'field': 'value'}),

0 commit comments

Comments
 (0)