Refs #9484 - Can't use context manager assert in older Python.