FIX warning check in test_affinities
Merge pull request #3763 from ogrisel/fix-warning-test-affinities

[MRG+1] FIX warning check in test_affinities