If it's expected to fail, it passes; if it's expected to pass, it fails.
The problem is that the test itself passes but then the test harness fails after the test. So, pytest reports PASS, and then ERROR. We don't handle that case correctly in the test runner. In any case, all element_clear tests are failing so this one is also expected to fail.
This is passing now since r253029.