Skip to content

Commit 40416a1

Browse files
gpsheadmrbean-bremen
authored andcommitted
Remove @DeprecationWarning as it isn't a decorator
`tearDownPyfakefs` is a no-op legacy API, it was given @DeprecationWarning as a decorator... which broke it rather than making it a no-op callable as that isn't a decorator. This fixes: ``` self.tearDownPyfakefs() TypeError: 'DeprecationWarning' object is not callable ``` in code updating to a modern pyfakefs that still calls it.
1 parent 518ab38 commit 40416a1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pyfakefs/fake_filesystem_unittest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ def copyRealFile(self, real_file_path, fake_file_path=None,
329329
"supports NOT creating missing directories")
330330
return self._stubber.fs.add_real_file(real_file_path, read_only=False)
331331

332-
@DeprecationWarning
333332
def tearDownPyfakefs(self):
334333
"""This method is deprecated and exists only for backward
335334
compatibility. It does nothing.

0 commit comments

Comments
 (0)