diff options
| author | Stefan Kögl <stefan@skoegl.net> | 2017-12-31 14:27:44 +0100 |
|---|---|---|
| committer | Stefan Kögl <stefan@skoegl.net> | 2017-12-31 14:27:44 +0100 |
| commit | 637f0c7a4c0e0bee1d54899ab95d93fc9a3f7c20 (patch) | |
| tree | c7e67ea6b94ec7b2199da45529071bce1e9b29b6 | |
| parent | fce420c02144aaac619f04311c2872b53e0f8f69 (diff) | |
| download | python-json-patch-637f0c7a4c0e0bee1d54899ab95d93fc9a3f7c20.tar.gz | |
Prefer Python3 when distinguishing str/unicode
| -rwxr-xr-x | tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -18,9 +18,9 @@ except ImportError: hypothesis = None try: - unicode + str = unicode # Python 2 except NameError: - unicode = str + pass class ApplyPatchTestCase(unittest.TestCase): @@ -632,8 +632,8 @@ if hypothesis is not None: | st.dictionaries(st.text(string.printable), children)) class RoundtripTests(unittest.TestCase): - @hypothesis.example({}, {unicode('%20'): None}) - @hypothesis.example({unicode('%20'): None}, {}) + @hypothesis.example({}, {str('%20'): None}) + @hypothesis.example({str('%20'): None}, {}) @hypothesis.given(json_st, json_st) def test_roundtrip(self, src, dst): patch = jsonpatch.JsonPatch.from_diff(src, dst, False) |
