question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Are dff, mean, endian_swapper examples somehow outdated?

See original GitHub issue

All three examples use @cocotb.coroutine decorators. If I understand Coroutines correctly, async/await should be used right now. Am I right?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
ktbarrettcommented, Apr 24, 2020

@m-kru Thanks for taking time to update some of the examples!

The issue with TestFactory is here https://github.com/cocotb/cocotb/blob/737edca64625803b19e24dd2c9ecddca99c90d28/cocotb/regression.py#L592-L593

An easy solution is to change this to

        if not isinstance(test_function, cocotb.coroutine) or inspect.iscoroutinefunction(test_function):
            raise TypeError("TestFactory requires a cocotb coroutine")
0reactions
eric-wiesercommented, Jun 23, 2020

Let’s close this in favor of gh-1730

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found