Skip to content

Commit

Permalink
Fixed bug in test that tried to use np.float128 for Windows. Windows …
Browse files Browse the repository at this point in the history
…dooes not support this.
  • Loading branch information
sm00thix committed Jun 10, 2024
1 parent fef76c1 commit e6a6f61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_cvmatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ def test_dtype(self):
center_Ys = [True, False]
scale_Xs = [True, False]
scale_Ys = [True, False]
dtypes = [np.float16, np.float32, np.float64, np.float128]
if sys.platform.startswith("win"):
dtypes = [np.float16, np.float32, np.float64]
if not sys.platform.startswith("win"):
# Windows does not support float128
dtypes.remove(np.float128)
dtypes.append(np.float128)
for center_X, center_Y, scale_X, scale_Y, dtype in product(
center_Xs, center_Ys, scale_Xs, scale_Ys, dtypes):
naive, fast = self.fit_models(
Expand Down

0 comments on commit e6a6f61

Please sign in to comment.