@@ -198,7 +198,7 @@ def test_custom_timezone_repr():
198
198
assert output .tzinfo .dst (output ) is None
199
199
assert output .tzinfo .tzname (output ) == '-12:15'
200
200
assert str (output .tzinfo ) == '-12:15'
201
- assert repr (output .tzinfo ) == ' TzInfo(-12:15)'
201
+ assert repr (output .tzinfo ) == " TzInfo(' -12:15')"
202
202
203
203
204
204
def test_custom_timezone_utc_repr ():
@@ -208,7 +208,7 @@ def test_custom_timezone_utc_repr():
208
208
assert output .tzinfo .dst (output ) is None
209
209
assert output .tzinfo .tzname (output ) == 'UTC'
210
210
assert str (output .tzinfo ) == 'UTC'
211
- assert repr (output .tzinfo ) == ' TzInfo(UTC)'
211
+ assert repr (output .tzinfo ) == " TzInfo(' UTC')"
212
212
213
213
214
214
def test_tz_comparison ():
@@ -230,16 +230,16 @@ def test_tz_comparison():
230
230
def test_tz_info_deepcopy ():
231
231
output = SchemaValidator (cs .datetime_schema ()).validate_python ('2023-02-15T16:23:44.037Z' )
232
232
c = copy .deepcopy (output )
233
- assert repr (output .tzinfo ) == ' TzInfo(UTC)'
234
- assert repr (c .tzinfo ) == ' TzInfo(UTC)'
233
+ assert repr (output .tzinfo ) == " TzInfo(' UTC')"
234
+ assert repr (c .tzinfo ) == " TzInfo(' UTC')"
235
235
assert c == output
236
236
237
237
238
238
def test_tz_info_copy ():
239
239
output = SchemaValidator (cs .datetime_schema ()).validate_python ('2023-02-15T16:23:44.037Z' )
240
240
c = copy .copy (output )
241
- assert repr (output .tzinfo ) == ' TzInfo(UTC)'
242
- assert repr (c .tzinfo ) == ' TzInfo(UTC)'
241
+ assert repr (output .tzinfo ) == " TzInfo(' UTC')"
242
+ assert repr (c .tzinfo ) == " TzInfo(' UTC')"
243
243
assert c == output
244
244
245
245
0 commit comments