[riot-commits] [RIOT-OS/RIOT] 410778: testrunner: make traceback extraction downwards-co...

Cenk Gündoğan mail-github at cgundogan.de
Wed Nov 15 15:36:30 CET 2017


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 410778303e4d34e9c9a80b99c01d2c7fa27ee00a
      https://github.com/RIOT-OS/RIOT/commit/410778303e4d34e9c9a80b99c01d2c7fa27ee00a
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2017-11-15 (Wed, 15 Nov 2017)

  Changed paths:
    M dist/tools/testrunner/testrunner.py

  Log Message:
  -----------
  testrunner: make traceback extraction downwards-compatible

The object-like access to frame information in the traceback was only
introduced in Python 3.5. Before that version it was a 4-tuple [[1]].

The indexed way to access the frame seems to be upwards-compatible for
newer versions (tested with python 3.5, maybe some of the Arch crew can
test with even newer versions), so I used that one.

[1]: https://docs.python.org/3.4/library/traceback.html#traceback.extract_tb


  Commit: 17cad6a1e0a0f494974ca0f823797c0abf28b98d
      https://github.com/RIOT-OS/RIOT/commit/17cad6a1e0a0f494974ca0f823797c0abf28b98d
  Author: Cenk Gündoğan <mail-github at cgundogan.de>
  Date:   2017-11-15 (Wed, 15 Nov 2017)

  Changed paths:
    M dist/tools/testrunner/testrunner.py

  Log Message:
  -----------
  Merge pull request #8043 from miri64/testrunner/fix/downwards-compatible

testrunner: make traceback extraction downwards-compatible


Compare: https://github.com/RIOT-OS/RIOT/compare/6355b9cda2c2...17cad6a1e0a0


More information about the commits mailing list