summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/ScriptInterpreter/Python/PythonExceptionStateTests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bug in PythonExceptionState and add unittest coverage.Zachary Turner2015-11-131-0/+53
| | | | | | | I forgot to reset the restore flag when calling member function `Acquire`. The newly added unittest should cover this case. llvm-svn: 253002
* Introduce a `PythonExceptionState` class.Zachary Turner2015-11-131-0/+121
This is a helper class which supports a number of features including exception to string formatting with backtrace handling and auto-restore of exception state upon scope exit. Additionally, unit tests are included to verify the feature set of the class. llvm-svn: 252994
OpenPOWER on IntegriCloud