Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Mar 12, 2024
1 parent c1fa45d commit c17666b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tableschema/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.20.2
1.20.2
6 changes: 3 additions & 3 deletions tests/types/test_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from __future__ import absolute_import
from __future__ import unicode_literals

import warnings
import pytest
from datetime import date, datetime
from tableschema import types
Expand Down Expand Up @@ -44,7 +45,6 @@
('fmt:%d/%m/%y', '', ERROR),
])
def test_cast_date(format, value, result):
with pytest.warns(None) as recorded:
with warnings.catch_warnings():
warnings.simplefilter("error" if not format.startswith('fmt:') else "ignore")
assert types.cast_date(format, value) == result
if not format.startswith('fmt:'):
assert recorded.list == []
6 changes: 3 additions & 3 deletions tests/types/test_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from __future__ import absolute_import
from __future__ import unicode_literals

import warnings
import pytest
from datetime import datetime
from tableschema import types
Expand Down Expand Up @@ -40,7 +41,6 @@
('fmt:%d/%m/%y %H:%M', '', ERROR),
])
def test_cast_datetime(format, value, result):
with pytest.warns(None) as recorded:
with warnings.catch_warnings():
warnings.simplefilter("error" if not format.startswith('fmt:') else "ignore")
assert types.cast_datetime(format, value) == result
if not format.startswith('fmt:'):
assert recorded.list == []
6 changes: 3 additions & 3 deletions tests/types/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from __future__ import absolute_import
from __future__ import unicode_literals

import warnings
import pytest
from datetime import time
from tableschema import types
Expand Down Expand Up @@ -48,7 +49,6 @@
('fmt:%H:%M', '', ERROR),
])
def test_cast_time(format, value, result):
with pytest.warns(None) as recorded:
with warnings.catch_warnings():
warnings.simplefilter("error" if not format.startswith('fmt:') else "ignore")
assert types.cast_time(format, value) == result
if not format.startswith('fmt:'):
assert recorded.list == []

0 comments on commit c17666b

Please sign in to comment.