Skip to content

Commit 41579a6

Browse files
committed
Update tests to use nose2
1 parent 35ccee6 commit 41579a6

File tree

8 files changed

+217
-233
lines changed

8 files changed

+217
-233
lines changed

dpath/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "2.0.7"
1+
VERSION = "2.0.8"

tests/test_path_paths.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
from nose.tools import raises
1+
from nose2.tools.such import helper
2+
23
import dpath.segments
34
import dpath.exceptions
45
import dpath.options
56

67

7-
@raises(dpath.exceptions.InvalidKeyName)
88
def test_path_paths_empty_key_disallowed():
99
tdict = {
1010
"Empty": {
@@ -14,8 +14,9 @@ def test_path_paths_empty_key_disallowed():
1414
}
1515
}
1616

17-
for x in dpath.segments.walk(tdict):
18-
pass
17+
with helper.assertRaises(dpath.exceptions.InvalidKeyName):
18+
for x in dpath.segments.walk(tdict):
19+
pass
1920

2021

2122
def test_path_paths_empty_key_allowed():

0 commit comments

Comments
 (0)