Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in test_local_req #173

Closed
MeggyCal opened this issue Jun 12, 2019 · 1 comment
Closed

Error in test_local_req #173

MeggyCal opened this issue Jun 12, 2019 · 1 comment

Comments

@MeggyCal
Copy link

MeggyCal commented Jun 12, 2019

I am running test offline.

[   65s] [gw2] linux2 -- Python 2.7.16 /usr/bin/python2
[   65s] 
[   65s] self = <CallInfo when='setup' exception: >
[   65s] func = <function <lambda> at 0x7f131dba9b18>, when = 'setup'
[   65s] treat_keyboard_interrupt_as_exception = False
[   65s] 
[   65s]     def __init__(self, func, when, treat_keyboard_interrupt_as_exception=False):
[   65s]         #: context of invocation: one of "setup", "call",
[   65s]         #: "teardown", "memocollect"
[   65s]         self.when = when
[   65s]         self.start = time()
[   65s]         try:
[   65s] >           self.result = func()

... and ater this it bubbles down through pytest and pluggy source files to fail in pytest:

[   65s]     def call_fixture_func(fixturefunc, request, kwargs):
[   65s]         yieldctx = is_generator(fixturefunc)
[   65s]         if yieldctx:
[   65s]             it = fixturefunc(**kwargs)
[   65s] >           res = next(it)
[   65s] E           StopIteration

What am I doing wrong, please? It seems nobody else has a problem with this test...

@techalchemy
Copy link
Member

Offline testing is still very experimental, I'm surprised this is the only issue. The library can't really be thoroughly tested offline unfortunately and the output provided is only the pytest default output when test setup fails, so it's not possible to provide additional insight. At a glance you possibly need to clone the git submodules first? Not too sure though, definitely need more info

techalchemy added a commit that referenced this issue Mar 31, 2020
- Fixes #173

Signed-off-by: Dan Ryan <dan@danryan.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants