Skip to content

Commit f5272a1

Browse files
change assert raise
1 parent 609bc70 commit f5272a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_rejson.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pytest
21
import redis
32
import six
43
import json
@@ -99,7 +98,7 @@ def testToggleShouldSucceed(self):
9998
self.assertFalse(rj.jsontoggle('bool', Path.rootPath()))
10099
# check non-boolean value
101100
rj.jsonset('num', Path.rootPath(), 1)
102-
with pytest.raises(redis.exceptions.ResponseError):
101+
with self.assertRaises(redis.exceptions.ResponseError):
103102
rj.jsontoggle('num', Path.rootPath())
104103

105104
def testStrAppendShouldSucceed(self):

0 commit comments

Comments
 (0)