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.

Make backward-compatibility magic optional

See original GitHub issue

I had some trouble with getting my large test suite to work properly with pytest. A debugging session revealed that I was using method names that pytest identified as “unittest” names, and then also as “nosetest” names. Pytest treated the methods specially as a result. Better for me would be if that helpful magic could be disabled, so that I get just-plain pytest.

My suggestion is to have options --legacy=unittest and --legacy=nosetest, and have to opt-in to that behavior. This would be a breaking change, so making it opt-out instead of opt-in is also a reasonable path.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
RonnyPfannschmidtcommented, Mar 9, 2021

most likely

0reactions
bluetechcommented, Nov 6, 2021

Closing as opt-out is possible as described above, and will track deprecation in #6973.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How the GNU C Library handles backward compatibility
The GNU C Library handles backward compatibility like a champ. ... This magic is called "compat symbols," which lets glibc and the static ......
Read more >
Serialization for Backward Compatibility in Swift - Medium
Technically, properties that existed in the first app release don't have to be optional. But if we make them non-optional it's easier for...
Read more >
Backward Compatibility Rules - Specmatic
There are a few simple rules, and a couple of exceptions. Requests: do not add mandatories (e.g. adding a new mandatory field, making...
Read more >
Making SQL Server Function Changes Backwards Compatible
In this article we look at how you can modify a SQL Server user defined function's set of parameters without breaking other code...
Read more >
Backward compatible APIs | GarfieldTech
Backward compatibility of a code component is a measure of how many changes (good or bad) code that depends on it needs to...
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