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