diff options
| author | Bob Ippolito <bob@redivi.com> | 2012-12-28 19:17:54 -0800 |
|---|---|---|
| committer | Bob Ippolito <bob@redivi.com> | 2012-12-28 19:17:54 -0800 |
| commit | 0bc9e8a586a6c2e4a85b3896a71fc04ed718cbfd (patch) | |
| tree | 8b146fcb9078ad4277c3b6c75856482053d43798 /simplejson/tests/test_scanstring.py | |
| parent | 77850638e824d23e3301962b3b142fe2e0520abb (diff) | |
| download | simplejson-0bc9e8a586a6c2e4a85b3896a71fc04ed718cbfd.tar.gz | |
start working on improving coverage, remove unused bytes code paths from py3
Diffstat (limited to 'simplejson/tests/test_scanstring.py')
| -rw-r--r-- | simplejson/tests/test_scanstring.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/simplejson/tests/test_scanstring.py b/simplejson/tests/test_scanstring.py index 4045fec..297bc1b 100644 --- a/simplejson/tests/test_scanstring.py +++ b/simplejson/tests/test_scanstring.py @@ -6,6 +6,14 @@ import simplejson.decoder from simplejson.compat import b class TestScanString(TestCase): + # The bytes type is intentionally not used in most of these tests + # under Python 3 because the decoder immediately coerces to str before + # calling scanstring. In Python 2 we are testing the code paths + # for both unicode and str. + # + # The reason this is done is because Python 3 would require + # entirely different code paths for parsing bytes and str. + # def test_py_scanstring(self): self._test_scanstring(simplejson.decoder.py_scanstring) |
