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.

Tackle some low-hanging fruit in "test_grammar.py"

See original GitHub issue

The latest copy of the CPython grammar tests in test_grammar.py has several @skips and FIXMEs. Some of them seem easy to fix, e.g. some parser bugs or missing warnings that would be helpful, others are entire features. We should fix the easy ones and make sure there are tickets for the rest.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
scodercommented, Jul 12, 2020

Sorry, the “FIXME” in use_old_parser() is actually a FIXME from CPython (hopefully the only one), not from Cython. The test file is copied from the CPython test suite. Nothing to fix here.

Note that you need to debug Cython itself here, not the test that it compiles.

For debugging, I suggest copying the failing code out of the module and running it through Cython manually, rather than always compiling the huge file completely and trying to end up in the right spot to debug it.

2reactions
da-woodscommented, Jul 12, 2020

@zdutta Thinking about it more, I think that test_grammar.py is compiled in Cython rather than run as a regular Python module. I wouldn’t expect the debugger to work on it.

I think there are some methods to debug Cython code but I’ve never really tried using them myself (and I especially don’t know how to do them with the test-suite). Sorry!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Low-hanging fruit Idiom Definition
The expression low-hanging fruit is used to describe an action that takes almost no effort. The idea comes from the very literal task...
Read more >
Tackle the Low-Hanging Fruit: How I Used Marketing ...
Today, I want to walk you through how I ran some of my first conversion optimization tests – and got results well beyond...
Read more >
What Is A Low Hanging Fruit Ep 263
The expression **low-hanging fruit** is used to describe achieving a result with little effort. This English phrase is something you might ...
Read more >
Low Hanging Fruit: A Full Guide To Find & Profit From It
The concept of low-hanging fruit means a quick win. Literally speaking, low-hanging fruit is the fruit that is found on the lower branches...
Read more >
What Is the Meaning of Low-Hanging Fruit in Business?
Some of the goals you set for your organization will be easier to achieve than others. For example, if you've completed a customer...
Read more >

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