You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably means that self.__iter__() returns an empty result for some reasons.
I believe it may happen when something doesn't get initialized. No idea what and why.
Any idea what the issue could be ?
The text was updated successfully, but these errors were encountered:
In case someone else has the issue, I haven't found the reason, but an additional "sleep" at the initialization addresses the issue:
conftest.py:
#!/usr/bin/env python# -*- coding: utf-8 -*-importtimeimportpytest# Note: This wait time is necessary because of django-countries sometimes being not# ready. Simple workaround to fix the issue and barely noticeable.defpytest_sessionstart(session):
"""Hook to delay the start of the pytest session."""initial_wait_time=0.2# secondsprint(f"Waiting for {initial_wait_time} seconds before starting pytest session...") # noqa: T201time.sleep(initial_wait_time)
I'm having a weird crash - totally random and hard to reproduce:
Probably means that
self.__iter__()
returns an empty result for some reasons.I believe it may happen when something doesn't get initialized. No idea what and why.
Any idea what the issue could be ?
The text was updated successfully, but these errors were encountered: