[1.6.x] Fixed a test failure introduced in f0bc2865ff.

`classobj` objects cannot be weakly referenced on Python 2.6