Skip to content

Commit

Permalink
Fix 36 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Jun 22, 2023
1 parent 8f89014 commit 45b0255
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def test_ensuredir_recreate():
base = ub.Path.appdir('ubelt/tests').ensuredir()
folder = join(base, 'foo')
member = join(folder, 'bar')
with pytest.warns():
with pytest.warns(DeprecationWarning):
ub.ensuredir(folder, recreate=True)
ub.ensuredir(member)
assert exists(member)
with pytest.warns():
with pytest.warns(DeprecationWarning):
ub.ensuredir(folder, recreate=True)
assert not exists(member)

Expand Down
2 changes: 1 addition & 1 deletion ubelt/util_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def repr2(data, **kwargs):
... 'odict': ub.odict([(2, '1'), (1, '2')]),
... }
>>> import pytest
>>> with pytest.warns():
>>> with pytest.warns(DeprecationWarning):
>>> result = ub.repr2(dict_, nl=1, precision=2)
>>> print(result)
{
Expand Down

0 comments on commit 45b0255

Please sign in to comment.