lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.11-8-ga6521e6

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum branch master updated. 1.11-8-ga6521e6



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".

The branch, master has been updated
       via  a6521e6fe0e092e24b543dc1e0540cef0a46f16a (commit)
      from  b1af986475aa5c6255b8fec0651e70e26138d219 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-stdnum/commit/?id=a6521e6fe0e092e24b543dc1e0540cef0a46f16a

commit a6521e6fe0e092e24b543dc1e0540cef0a46f16a
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Wed May 1 23:57:02 2019 +0200

    Fix remaining issue with encoding
    
    This also sets the python 2.6 interpreter explicityly because sometimes
    tox seems to get the wrong one.
    
    Fixes 680a95f

diff --git a/tests/test_isbn.doctest b/tests/test_isbn.doctest
index 6cdaf3b..26ccdab 100644
--- a/tests/test_isbn.doctest
+++ b/tests/test_isbn.doctest
@@ -107,13 +107,14 @@ Regrouping tests.
 ('', '', '', '541317012152', '2')
 
 
-Explicit tests for invalid characters.
+Explicit tests for invalid characters. The first number is 978-90245᭓8270,
+the second is 978-9024538²70.
 
->>> isbn.validate('b'978-90245\xe1\xad\x938270'.decode('utf-8')')  # 
978-90245᭓8270
+>>> isbn.validate(b'978-90245\xe1\xad\x938270'.decode('utf-8'))
 Traceback (most recent call last):
     ...
 InvalidFormat: ...
->>> isbn.validate(b'978-9024538\xc2\xb270'.decode('utf-8'))  # 978-9024538²70
+>>> isbn.validate(b'978-9024538\xc2\xb270'.decode('utf-8'))
 Traceback (most recent call last):
     ...
 InvalidFormat: ...
diff --git a/tox.ini b/tox.ini
index 940e30a..065c3a8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,6 +10,7 @@ setenv=
     PYTHONWARNINGS=all
 
 [testenv:py26]
+basepython = python2.6
 usedevelop = True
 commands = nosetests --ignore-file="test_.*.py"
 

-----------------------------------------------------------------------

Summary of changes:
 tests/test_isbn.doctest | 7 ++++---
 tox.ini                 | 1 +
 2 files changed, 5 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
python-stdnum
-- 
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
https://lists.arthurdejong.org/python-stdnum-commits/