Mercurial > hg
view tests/README @ 31219:f8e06821c118
store: slice over a bytestring to get characters instead of ascii values
On Python 2,
>>> a = b'abc'
>>> a[1]
'b'
Whereas on python 3,
>>> a = b'abc'
>>> a[1]
98
>>> a[1:2]
b'b'
This does not change behaviour on python 2.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 08 Mar 2017 00:40:15 +0530 |
parents | 4b0fc75f9403 |
children |
line wrap: on
line source
To run the tests, do: cd tests/ python run-tests.py See https://mercurial-scm.org/wiki/WritingTests for more information on writing tests.