Skip to content

Commit

Permalink
Deprecate all warnings while inspecting loaded modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbean-bremen committed Jun 23, 2021
1 parent 2f54cd0 commit 8ca8fcb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ The released versions correspond to PyPi releases.

## Version 4.6.0 (as yet unreleased)

### Fixes
* suppress all warnings while inspecting loaded modules
(see [#614](../../issues/614))

### Infrastructure
* added test dependency check (see [#608](../../issues/608))

Expand Down
3 changes: 1 addition & 2 deletions pyfakefs/fake_filesystem_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,7 @@ def setUp(self, doctester=None):
with warnings.catch_warnings():
# ignore deprecation warnings, see #542
warnings.filterwarnings(
'ignore',
category=DeprecationWarning
'ignore'
)
self._find_modules()

Expand Down
1 change: 1 addition & 0 deletions pyfakefs/tests/fixtures/deprecated_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class DeprecatedProperty:

def __get__(self, instance, cls):
warnings.warn("async is deprecated", DeprecationWarning)
warnings.warn("async will be replaced", FutureWarning)
return instance


Expand Down

0 comments on commit 8ca8fcb

Please sign in to comment.