19f160b307515b3c0868915d0f044332bba109e0,skbio/util/tests/test_decorator.py,TestExperimental,test_function_signature,#TestExperimental#,264
Before Change
f = self._get_f("0.1.0")
// Py2: update this to use inspect.signature when we drop Python 2
// inspect.getargspec is deprecated and won"t exist in 3.6
expected = inspect.ArgSpec(
args=["x", "y"], varargs=None, keywords=None, defaults=(42,))
self.assertEqual(inspect.getargspec(f), expected)
self.assertEqual(f.__name__, "f")
def test_missing_kwarg(self):
After Change
def test_function_signature(self):
f = self._get_f("0.1.0")
parameters = [
inspect.Parameter("x", inspect.Parameter.POSITIONAL_OR_KEYWORD),
inspect.Parameter("y", inspect.Parameter.POSITIONAL_OR_KEYWORD,
default=42)
]
expected = inspect.Signature(parameters)
self.assertEqual(inspect.signature(f), expected)
self.assertEqual(f.__name__, "f")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 14
Instances
Project Name: biocore/scikit-bio
Commit Name: 19f160b307515b3c0868915d0f044332bba109e0
Time: 2016-03-24
Author: jai.rideout@gmail.com
File Name: skbio/util/tests/test_decorator.py
Class Name: TestExperimental
Method Name: test_function_signature
Project Name: biocore/scikit-bio
Commit Name: 19f160b307515b3c0868915d0f044332bba109e0
Time: 2016-03-24
Author: jai.rideout@gmail.com
File Name: skbio/util/tests/test_decorator.py
Class Name: TestExperimental
Method Name: test_function_signature
Project Name: biocore/scikit-bio
Commit Name: 19f160b307515b3c0868915d0f044332bba109e0
Time: 2016-03-24
Author: jai.rideout@gmail.com
File Name: skbio/util/tests/test_decorator.py
Class Name: TestDeprecated
Method Name: test_function_signature
Project Name: biocore/scikit-bio
Commit Name: 19f160b307515b3c0868915d0f044332bba109e0
Time: 2016-03-24
Author: jai.rideout@gmail.com
File Name: skbio/util/tests/test_decorator.py
Class Name: TestStable
Method Name: test_function_signature