Skip to content

Commit

Permalink
Fixed test_double test to work with python2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jeekimm committed Nov 24, 2022
1 parent 91989aa commit a4385ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_zero():

def test_double():
# This one will fail in Python 2
num_list=[1,2,3,4]
num_list=[1.0,2.0,3.0,4.0]
obs = mean(num_list)
exp = 2.5
assert obs == exp
Expand Down

0 comments on commit a4385ec

Please sign in to comment.