Skip to content

Commit

Permalink
Update test_alg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamba413 committed Apr 24, 2024
1 parent 83a3a33 commit d3181f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/pytest/test_alg.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ def test_binomial():
test_data = load_data("binomial_test")

def assert_reg(coef, fit_intercept=True, rel=0.01, abs=0.01):
if sys.version_info[0] + 0.1 * sys.version_info[1] < 3.6:
sys_version_num = sys.version_info[0] + 0.1 * sys.version_info[1]
if sys_version_num < 3.6 or sys_version_num >= 3.9:
return
nonzero = np.nonzero(coef)[0]
new_x = data.x[:, nonzero]
Expand Down

0 comments on commit d3181f0

Please sign in to comment.