I'll be bumping lxml to 2.1.2 to see if it's fixed. Tests pass with libxml2-2.6.32
Created attachment 167912 [details] Test failure output
Tests fail with -O2 and higher. These flags will be filtered.