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 it configurable to skip subset of deprecations being raised

See original GitHub issue

Under python3.6 we see this issue that using unittest with pytest is raising tons of DeprecationWarnings (e.g. https://github.com/astropy/halotools/issues/718 & https://github.com/astropy/astroquery/pull/815)

It would be rather useful to have a configurable list for treat_deprecations_as_exceptions that would skip deprecations being raised, similarly as it already happens for a few packages by default: https://github.com/astropy/astropy/blob/master/astropy/tests/helper.py#L242

I’m adding a milestone, so if noone else picks this up I’ll try to do it myself for the next major release.

Also if this happens before, I’m considering this backporting to a bugfix, as this missing feature may be considered a bug (as the tests are failing in the affiliates).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:25 (25 by maintainers)

github_iconTop GitHub Comments

1reaction
bsipoczcommented, Jul 5, 2017

Backporting is easy, the question whether this can lay low under @eteq’s radar. But nevertheless it’s a super useful addition for affiliates to use straight away, thus I would consider it to backport.

1reaction
bsipoczcommented, Jul 5, 2017

Should we then threat it as a bugfix? 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deprecations and Removals — pytest documentation
This page lists all pytest features that are currently deprecated or have been removed in past major releases. The objective is to give...
Read more >
How do I disable a test using pytest? - Stack Overflow
The first example always skips the test, the second example allows you to conditionally skip tests (great when tests depend on the platform,...
Read more >
unittest — Unit testing framework — Python 3.11.1 ...
Source code: Lib/unittest/__init__.py(If you are already familiar with the basic concepts of testing, you might want to skip to the list of assert...
Read more >
Deprecated Database Engine Features - SQL Server 2016
Category Deprecated feature Replacement Backup and restore BACKUP TO TAPE BACKUP TO device_that_is_a_tape BACKUP TO D... Backup and restore sp_addumpdevice'tape' sp_addumpde... Backup and restore sp_helpdevice sys.backup_d......
Read more >
pytest Documentation - Read the Docs
Using pytest.raises() is likely to be better for cases where you are testing exceptions your own code is delib-.
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