skip_on_issue plugin fails with data driven tests

Bug #1277242 reported by Steve Heyman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenCafe
Incomplete
Undecided
Unassigned

Bug Description

When I try to use @skip_on_issue for a data driven test it fails:

Traceback (most recent call last):
  File "/Users/step6927/.pyenv/versions/cafe27/bin/cafe-runner", line 9, in <module>
    load_entry_point('cafe==0.1.0', 'console_scripts', 'cafe-runner')()
  File "/Users/step6927/.pyenv/versions/cafe27/lib/python2.7/site-packages/cafe/drivers/unittest/runner.py", line 1000, in entry_point
    runner.run()
  File "/Users/step6927/.pyenv/versions/cafe27/lib/python2.7/site-packages/cafe/drivers/unittest/runner.py", line 903, in run
    master_suite = builder.generate_suite(path, master_suite)
  File "/Users/step6927/.pyenv/versions/cafe27/lib/python2.7/site-packages/cafe/drivers/unittest/runner.py", line 424, in generate_suite
    st = self.get_tests(module_path)
  File "/Users/step6927/.pyenv/versions/cafe27/lib/python2.7/site-packages/cafe/drivers/unittest/runner.py", line 408, in get_tests
    loaded_module = self.load_module(module_path)
  File "/Users/step6927/.pyenv/versions/cafe27/lib/python2.7/site-packages/cafe/drivers/unittest/runner.py", line 268, in load_module
    loaded_module = imp.load_module(mod, f, m_path, description)
  File "/Users/step6927/CloudCafe/cloudroast/cloudroast/cloudkeep/client_lib/functional/secrets.py", line 108, in <module>
    class SecretsAPI(SecretsFixture):
  File "/Users/step6927/.pyenv/versions/cafe27/lib/python2.7/site-packages/cafe/drivers/unittest/decorators.py", line 92, in DataDrivenFixture
    name=new_test_name)
TypeError: arg 5 (closure) must be tuple

Works just fine for a non-dd test.

Odd msg since in debugger I see in that in the call to types.FunctionType, the original_test.closure arg is, in fact, a tuple.

Revision history for this message
Steve Heyman (sheyman) wrote :

Moved into github from launchpad. Closing this one.

Changed in opencafe:
status: New → Confirmed
status: Confirmed → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.