[packages/python-subunit] - python3.8 unittest restores traceback prelude

qboosh qboosh at pld-linux.org
Fri Jan 10 22:06:50 CET 2020


commit 0386f330ada15254a7bd6ec01c53f2faa104b8b5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jan 10 22:06:51 2020 +0100

    - python3.8 unittest restores traceback prelude

 python-subunit-tests.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/python-subunit-tests.patch b/python-subunit-tests.patch
index cceb648..c2b9ca3 100644
--- a/python-subunit-tests.patch
+++ b/python-subunit-tests.patch
@@ -40,7 +40,7 @@ Adjust some traceback quirks for (python3 or not unittest2???)
  
  # Before the test module imports to avoid circularity.
  # For testing: different pythons have different str() implementations.
-+tb_prelude = "Traceback (most recent call last):\n" if sys.version_info[0] < 3 else ""
++tb_prelude = "Traceback (most recent call last):\n" if ((sys.version_info[0] < 3) or (sys.version_info[0:2] >= [3, 8])) else ""
  _remote_exception_repr = "testtools.testresult.real._StringException"
 -_remote_exception_str = "Traceback (most recent call last):\ntesttools.testresult.real._StringException"
 -_remote_exception_str_chunked = "57\r\n" + _remote_exception_str + ": boo qux\n0\r\n"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-subunit.git/commitdiff/0386f330ada15254a7bd6ec01c53f2faa104b8b5



More information about the pld-cvs-commit mailing list