forked from jendrikseipp/vulture
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Whitelists: use non-dynamic objects directly instead of mocking them. (…
- Loading branch information
1 parent
be667ec
commit 3899b22
Showing
12 changed files
with
45 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import argparse | ||
|
||
_ = argparse.ArgumentParser() | ||
_.epilog | ||
|
||
argparse.ArgumentDefaultsHelpFormatter._fill_text | ||
argparse.ArgumentDefaultsHelpFormatter._get_help_string |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import collections | ||
|
||
# To free memory, the "default_factory" attribute can be set to None. | ||
collections.defaultdict.default_factory |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import sys | ||
|
||
# Never report redirected streams as unused. | ||
sys.stderr | ||
sys.stdin | ||
sys.stdout |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from unittest import TestCase | ||
|
||
TestCase.setUp | ||
TestCase.tearDown | ||
TestCase.setUpClass | ||
TestCase.tearDownClass | ||
TestCase.run | ||
TestCase.skipTest | ||
TestCase.debug | ||
TestCase.failureException | ||
TestCase.longMessage | ||
TestCase.maxDiff | ||
try: | ||
# new in Python 3.4 | ||
TestCase.subTest | ||
except AttributeError: | ||
pass | ||
|
||
try: | ||
# unittest.mock was introduced in Python 3.3 | ||
from unittest import mock | ||
except ImportError: | ||
pass | ||
else: | ||
mock.Mock.return_value | ||
mock.Mock.side_effect |