projects
/
swc-testing-nose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a9015d
)
removes answers accidentally added. These were flotsam/jetsam from live coding in...
author
Katy Huff
<katyhuff@gmail.com>
Wed, 30 Jan 2013 14:54:27 +0000
(08:54 -0600)
committer
W. Trevor King
<wking@tremily.us>
Fri, 1 Nov 2013 04:12:56 +0000
(21:12 -0700)
python/testing/test_mean.py
patch
|
blob
|
history
diff --git
a/python/testing/test_mean.py
b/python/testing/test_mean.py
index b9715f48868ac2bbcbc4c7969ecb48a0cea68cc3..44c3b7c6999e9e79e9dbcbb002bdfd3b735ac66e 100644
(file)
--- a/
python/testing/test_mean.py
+++ b/
python/testing/test_mean.py
@@
-24,22
+24,3
@@
def test_floating_mean1():
obs = mean([1, 2])
exp = 1.5
assert_equal(obs, exp)
-
-def test_string():
- assert_raises(TypeError, mean, ["one", "two", "fortyeight"])
-
-def test_inf() :
- obs = mean([1,2,float("inf")])
- exp = float("inf")
- assert_equal(obs, exp)
-
-def test_zero_elems() :
- empty_list = []
- assert_raises(ZeroDivisionError, mean, empty_list)
-
-
-
-
-
-
-