We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fce420c commit 637f0c7Copy full SHA for 637f0c7
tests.py
@@ -18,9 +18,9 @@
18
hypothesis = None
19
20
try:
21
- unicode
+ str = unicode # Python 2
22
except NameError:
23
- unicode = str
+ pass
24
25
26
class ApplyPatchTestCase(unittest.TestCase):
@@ -632,8 +632,8 @@ def test_replace_missing(self):
632
| st.dictionaries(st.text(string.printable), children))
633
634
class RoundtripTests(unittest.TestCase):
635
- @hypothesis.example({}, {unicode('%20'): None})
636
- @hypothesis.example({unicode('%20'): None}, {})
+ @hypothesis.example({}, {str('%20'): None})
+ @hypothesis.example({str('%20'): None}, {})
637
@hypothesis.given(json_st, json_st)
638
def test_roundtrip(self, src, dst):
639
patch = jsonpatch.JsonPatch.from_diff(src, dst, False)
0 commit comments