<div dir="ltr"><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 17, 2014 at 5:32 AM, Markus Metz <span dir="ltr"><<a href="mailto:markus.metz.giswork@gmail.com" target="_blank">markus.metz.giswork@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow:hidden">BTW, the test suite does not run with Python 2.6 because import<br>
argparse fails, this module is new in Python 2.7.</div></blockquote></div><br></div><div class="gmail_extra">I know and I don't know if 2.6 support is feasible. A lot of unittest functions was added in 2.7, so most of the tests would fail anyway. There is unittest2 package which can be installed separately and used instead of unittest in Python 2.6 but as I was reading about it it does not seem as smooth as I hoped for.<br><br></div><div class="gmail_extra">But perhaps installing unittest2 and argparse is worth trying. Few changes will be required in gunittest too, mostly imports I hope.<br></div><br></div><div>About which platform do we talk about because now I'm starting to be concerned more about Python 3 which is appearing more and more as default.<br></div><div><br></div>I forgot to mention this in the other thread about gunittest backport, incompatibility with 2.6 is another argument against backport.<br><div><div class="gmail_extra"><br></div><div class="gmail_extra">Vaclav<br></div><div class="gmail_extra"><br><a href="https://docs.python.org/2/library/unittest.html#assert-methods" target="_blank">https://docs.python.org/2/library/unittest.html#assert-methods</a><br><a href="https://docs.python.org/2/library/unittest.html#unittest.TestCase.assertRaisesRegexp" target="_blank">https://docs.python.org/2/library/unittest.html#unittest.TestCase.assertRaisesRegexp</a><br><a href="https://docs.python.org/2/library/unittest.html#unittest.TestCase.addTypeEqualityFunc" target="_blank">https://docs.python.org/2/library/unittest.html#unittest.TestCase.addTypeEqualityFunc</a><br><a href="https://docs.python.org/2/library/unittest.html#unittest.TestCase.setUpClass" target="_blank">https://docs.python.org/2/library/unittest.html#unittest.TestCase.setUpClass</a><br><a href="https://docs.python.org/2/library/unittest.html#unittest.registerResult" target="_blank">https://docs.python.org/2/library/unittest.html#unittest.registerResult</a><br><br><a href="https://pypi.python.org/pypi/unittest2" target="_blank">https://pypi.python.org/pypi/unittest2</a><br><a href="https://pypi.python.org/pypi/argparse" target="_blank">https://pypi.python.org/pypi/argparse</a><br></div></div></div>