Permalink
Browse files

Update the unit tests for the TypeError changes.

  • Loading branch information...
1 parent 0e670e1 commit dd5b7b8785dcc11b74b0c40e763e9780834a36d2 @jparise jparise committed Oct 26, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/test_times.py
View
@@ -102,7 +102,7 @@ def test_to_universal_rejects_no_tzinfo(self): # noqa
def test_to_universal_rejects_non_date_arguments(self):
"""to_universal rejects non-date arguments"""
- with self.assertRaises(ValueError):
+ with self.assertRaises(TypeError):
times.to_universal([1, 2, 3])
@@ -127,7 +127,7 @@ def test_convert_unix_time_to_datetime(self): # noqa
def test_convert_non_numeric_from_unix(self):
"""from_unix refuses to accept non-numeric input"""
- with self.assertRaises(ValueError):
+ with self.assertRaises(TypeError):
times.from_unix('lol')
@@ -141,7 +141,7 @@ def test_convert_datetime_to_unix_time(self): # noqa
def test_convert_non_numeric_to_unix(self):
"""to_unix refuses to accept non-numeric input"""
- with self.assertRaises(ValueError):
+ with self.assertRaises(TypeError):
times.to_unix('lol')

0 comments on commit dd5b7b8

Please sign in to comment.