Skip to content

Commit afb8fcf

Browse files
Requested changes
1 parent cea6cf3 commit afb8fcf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/test/datetimetester.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@ def test_valuerror_messages(self):
20012001
# days out of range have their own error message, see issue 70647
20022002
with self.assertRaises(ValueError) as msg:
20032003
self.theclass(2009, 1, 32)
2004-
self.assertIn(f"day 32 must be in range 1..30 for month 4 in year 2009", str(msg.exception))
2004+
self.assertIn(f"day 32 must be in range 1..30 for month 4 in year 2009", str(msg.exception))
20052005

20062006
def test_fromisoformat(self):
20072007
# Test that isoformat() is reversible
@@ -3273,7 +3273,7 @@ def test_valuerror_messages(self):
32733273
# days out of range have their own error message, see issue 70647
32743274
with self.assertRaises(ValueError) as msg:
32753275
self.theclass(2009, 4, 32, 24, 0, 0)
3276-
self.assertIn(f"day 32 must be in range 1..30 for month 4 in year 2009", str(msg.exception))
3276+
self.assertIn(f"day 32 must be in range 1..30 for month 4 in year 2009", str(msg.exception))
32773277

32783278
def test_fromisoformat_datetime(self):
32793279
# Test that isoformat() is reversible
@@ -3594,7 +3594,7 @@ def test_fromisoformat_fails_datetime_valueerror(self):
35943594
# days out of range have their own error message, see issue 70647
35953595
with self.assertRaises(ValueError) as msg:
35963596
self.theclass.fromisoformat("2009-04-32T24:00:00")
3597-
self.assertIn(f"day 32 must be in range 1..30 for month 4 in year 2009", str(msg.exception))
3597+
self.assertIn(f"day 32 must be in range 1..30 for month 4 in year 2009", str(msg.exception))
35983598

35993599
def test_fromisoformat_fails_surrogate(self):
36003600
# Test that when fromisoformat() fails with a surrogate character as

0 commit comments

Comments
 (0)