[PATCH 2/2] test: ensure certain types exposed to python are not instancable
Tom Tromey
tromey@redhat.com
Thu Oct 10 19:14:00 GMT 2013
>>>>> "Sanimir" == Sanimir Agovic <sanimir.agovic@intel.com> writes:
Sanimir> The proc gdb_py_test_exception executes a piece of python code and
Sanimir> expects an exception of type EXCEPTION to be raised by the code with
Sanimir> an optional MESSAGE for fine grained filtering.
FWIW I generally put the test cases in the same patch as the
modification; same with the docs. That's because they are a conceptual
unit.
It looks good, however --
Sanimir> + gdb_py_test_multiple "$stmt throws $exception" \
Sanimir> + "python" "" \
Sanimir> + "try:" "" \
Sanimir> + " $stmt" "" \
Sanimir> + "except $exception as e:" "" \
... there's one version of Python we support that doesn't have this
syntax. I forget which one, I know Phil remembers though.
Tom
More information about the Gdb-patches
mailing list