Commit Graph

10 Commits

Author SHA1 Message Date
David Wilson 3b4f184298 issue #477: replace type(e) -> __class__ for an exception
Due to old style exception classes.
2019-01-26 00:48:06 +00:00
David Wilson 07401d767a issue #477: Python 2.4 type(exc) returns old-style instance. 2019-01-23 18:45:46 +00:00
David Wilson f5d9af80ef tests: some more utility function tests + flake8. 2019-01-21 19:38:23 +00:00
David Wilson 1555f23215 tests: add some more helper function tests. 2019-01-21 15:25:46 +00:00
David Wilson 8a0b343760 issue #406: test for FD leak after every TestCase 2018-11-03 13:28:37 +00:00
David Wilson 826c477061 tests: built-in exceptions live in a different module in 3.x 2018-07-07 14:55:47 +01:00
David Wilson ec176bf1f8 tests: unittest2 import behaviour appears to differ between 2/3.
In 2 the module is loaded as __main__
In 3 it has its actual name.
2018-07-07 14:55:47 +01:00
David Wilson 410016ff47 Initial Python 3.x port work.
* ansible: use unicode_literals everywhere since it only needs to be
  compatible back to 2.6.
* compat/collections.py: delete this entirely and rip out the parts of
  functools that require it.
* Introduce serializable Kwargs dict subclass that translates keys to
  Unicode on instantiation.
* enable_debug_logging() must set _v/_vv globals.
* cStringIO does not exist in 3.x.
* Treat IOLogger and LogForwarder input as latin-1.
* Avoid ResourceWarnings in first stage by explicitly closing fps.
* Fix preamble_size.py syntax errors.
2018-07-07 14:55:47 +01:00
David Wilson 78d375e0c5 core: CallError should handle any exception type.
Previously SystemExit would be pickled.
2018-05-12 00:51:50 +01:00
David Wilson 7b12f84366 core: support CallError(str) for service.py. 2018-03-29 11:53:02 +05:45