@@ -35,12 +35,6 @@ class _DummyObject(object):
3535 def __init__ (self , value = "x" ):
3636 self .value = value
3737
38- def __eq__ (self , other ):
39- return self .value == other .value
40-
41- def __hash__ (self ):
42- return hash (self .value )
43-
4438 def __repr__ (self ):
4539 return "<Dummy>"
4640
@@ -379,12 +373,12 @@ def test_assert_datetime_about_now_utc__too_high(self):
379373 with assert_raises (AssertionError ):
380374 assert_datetime_about_now_utc (then )
381375
382- def assert_datetime_about_now_utc__default_message (self ):
376+ def test_assert_datetime_about_now_utc__default_message (self ):
383377 then = datetime (1990 , 4 , 13 , 12 , 30 , 15 )
384378 expected_message = (
385379 r"datetime.datetime\(1990, 4, 13, 12, 30, 15\) "
386380 r"is not close to current UTC "
387- r"datetime.datetime\(\d+, \d+, \d+, \d+, \d+, \d+\)$" )
381+ r"datetime.datetime\(\d+, \d+, \d+, \d+, \d+, \d+, \d+ \)$" )
388382 with assert_raises_regex (AssertionError , expected_message ):
389383 assert_datetime_about_now_utc (then )
390384
0 commit comments