We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c2a58f commit 6b3e484Copy full SHA for 6b3e484
tests/conftest.py
@@ -1,4 +1,10 @@
1
import random as rand
2
+
3
+# Because of a SyntaxWarning raised when compiling highspy, we have to filter SyntaxWarning here.
4
+# It seems that the standard ways of ignoring warnings in pytest do not work, because the problem
5
+# is already triggered in the conftest.py itself. These two lines could be removed when
6
+# https://github.com/ERGO-Code/HiGHS/issues/2777 is fixed and the fix is released.
7
+import warnings
8
from contextlib import nullcontext
9
10
import torch
@@ -7,6 +13,8 @@
13
from torch import Tensor
14
from utils.architectures import ModuleFactory
15
16
+warnings.filterwarnings("ignore", category=SyntaxWarning)
17
18
from torchjd.aggregation import Aggregator, Weighting
11
19
12
20
0 commit comments