Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed May 11, 2021
1 parent ac360c5 commit b37a922
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/test_datetime_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,6 @@ class Model(BaseModel):
with pytest.raises(ValidationError) as exc_info:
Model(dt='nan', d='nan')
assert exc_info.value.errors() == [
{
'loc': ('dt',),
'msg': 'cannot convert float NaN to integer',
'type': 'value_error',
},
{
'loc': ('d',),
'msg': 'cannot convert float NaN to integer',
'type': 'value_error',
},
{'loc': ('dt',), 'msg': 'cannot convert float NaN to integer', 'type': 'value_error'},
{'loc': ('d',), 'msg': 'cannot convert float NaN to integer', 'type': 'value_error'},
]

0 comments on commit b37a922

Please sign in to comment.