Skip to content

Commit 9e15e1c

Browse files
committed
Trying to pass the test on GitHub...
1 parent 0d847b1 commit 9e15e1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/riskparityportfolio/tests/test_modern_rpp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_constraints():
109109
my_portfolio.design(Cmat=np.empty((0, N)), cvec=[],
110110
Dmat=np.vstack([-np.ones((1,N)), np.ones((1,N))]), dvec=np.array([-0.5, 1]))
111111
w = my_portfolio.weights
112-
np.testing.assert_array_less(sum(w), 1)
112+
np.testing.assert_array_less(sum(w), 1.0)
113113
np.testing.assert_array_less(-sum(w), -0.5)
114114

115115

0 commit comments

Comments
 (0)