veekun / pokedex

more than you ever wanted to know about Pokémon
MIT License
1.44k stars 637 forks source link

Random lookup: intermittent test failure #147

Open magical opened 9 years ago

magical commented 9 years ago
=================================== FAILURES ===================================
_______________________________ test_bare_random _______________________________

lookup = <pokedex.lookup.PokedexLookup object at 0x8c983d0>

    def test_bare_random(lookup):
        for i in range(5):
            results = lookup.lookup(u'random')
>           assert len(results) == 1
E           assert 0 == 1
E            +  where 0 = len([])

pokedex/tests/test_lookup.py:134: AssertionError