Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import random as rand
import warnings
from contextlib import nullcontext

import torch
Expand All @@ -7,6 +8,12 @@
from torch import Tensor
from utils.architectures import ModuleFactory

# Because of a SyntaxWarning raised when compiling highspy, we have to filter SyntaxWarning here.
# It seems that the standard ways of ignoring warnings in pytest do not work, because the problem
# is already triggered in the conftest.py itself. This line could be removed when
# https://github.com/ERGO-Code/HiGHS/issues/2777 is fixed and the fix is released.
warnings.filterwarnings("ignore", category=SyntaxWarning)

from torchjd.aggregation import Aggregator, Weighting


Expand Down
Loading