TST: Fix boxplot test for python3
Merge pull request #8098 from sinhrks/gh8091

TST: Fix boxplot test for python3