Skip to content

Commit 4d6861c

Browse files
committed
Refactored test file for argspec changing into named tuple funcprop
1 parent d8fdc2f commit 4d6861c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/test/test_curtsies_painting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ def test_argspec(self):
109109
def foo(x, y, z=10):
110110
"docstring!"
111111
pass
112-
argspec = inspection.getargspec('foo', foo) + [1]
113-
array = replpainter.formatted_argspec(argspec, 30, setup_config())
112+
argspec = inspection.getfuncprops('foo', foo)
113+
array = replpainter.formatted_argspec(argspec, 1, 30, setup_config())
114114
screen = [bold(cyan('foo')) + cyan(':') + cyan(' ') + cyan('(') +
115115
cyan('x') + yellow(',') + yellow(' ') + bold(cyan('y')) +
116116
yellow(',') + yellow(' ') + cyan('z') + yellow('=') +

0 commit comments

Comments
 (0)