Fix a bug in PythonExceptionState and add unittest coverage.

I forgot to reset the restore flag when calling member function
`Acquire`.  The newly added unittest should cover this case.

llvm-svn: 253002
This commit is contained in:
Zachary Turner
2015-11-13 01:50:19 +00:00
parent 2cab8eec74
commit a87d0ae61b
3 changed files with 66 additions and 0 deletions

View File

@@ -30,6 +30,9 @@ class PythonExceptionState
void
Discard();
void
Reset();
static bool
HasErrorOccurred();