[1.6.x] Tweaked strip_tags tests to pass on Python 3.3

Backport of 6a0291bda from master.