A version dependent import is needed here, in Python 3 `Queue` was been renamed `queue` . This test is failing for those later versions.