From 8b454c4765a55868f73d224e95c72e54f5894349 Mon Sep 17 00:00:00 2001 From: Michael Billington Date: Thu, 17 Mar 2016 21:59:47 +1100 Subject: [PATCH 1/2] Clean up non-float value, add v3.5 to tox test --- escpos/escpos.py | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/escpos/escpos.py b/escpos/escpos.py index 4498456..738c258 100644 --- a/escpos/escpos.py +++ b/escpos/escpos.py @@ -83,7 +83,7 @@ class Escpos(object): pbuffer = b'' self._raw(S_RASTER_N) - pbuffer = "%02X%02X%02X%02X" % (((size[0]/size[1])/8), 0, size[1] & 0xff, size[1] >> 8) + pbuffer = "%02X%02X%02X%02X" % (((size[0]//size[1])//8), 0, size[1] & 0xff, size[1] >> 8) self._raw(binascii.unhexlify(pbuffer)) pbuffer = "" diff --git a/tox.ini b/tox.ini index 0a56f96..c7460c5 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27, py34 +envlist = py27, py34, py35 [testenv] deps = nose From 85961482710ef158c692ed99f98ec997f0fc7f3d Mon Sep 17 00:00:00 2001 From: Michael Billington Date: Sat, 19 Mar 2016 22:14:37 +1100 Subject: [PATCH 2/2] update .travis.yml to use a matrix of versions in build --- .travis.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 21ba88d..0da8c1d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,16 @@ language: python sudo: false cache: pip +matrix: + include: + - python: 2.7 + env: TOXENV=py27 + - python: 3.4 + env: TOXENV=py34 + - python: 3.5 + env: TOXENV=py35 before_install: - pip install tox # command to run tests script: - - tox \ No newline at end of file + - tox