Skip to content

Commit 6c23946

Browse files
author
Tyler Goodlet
committed
Port tests to match new varnames() return value
1 parent 1b4aceb commit 6c23946

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

testing/test_helpers.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ class B(object):
1313
def __call__(self, z):
1414
pass
1515

16-
assert varnames(f) == ("x",)
17-
assert varnames(A().f) == ('y',)
18-
assert varnames(B()) == ('z',)
16+
assert varnames(f) == (("x",), ())
17+
assert varnames(A().f) == (('y',), ())
18+
assert varnames(B()) == (('z',), ())
1919

2020

2121
def test_varnames_default():
2222
def f(x, y=3):
2323
pass
2424

25-
assert varnames(f) == ("x",)
25+
assert varnames(f) == (("x",), ("y",))
2626

2727

2828
def test_varnames_class():
@@ -40,10 +40,10 @@ def __init__(self, x):
4040
class F(object):
4141
pass
4242

43-
assert varnames(C) == ("x",)
44-
assert varnames(D) == ()
45-
assert varnames(E) == ("x",)
46-
assert varnames(F) == ()
43+
assert varnames(C) == (("x",), ())
44+
assert varnames(D) == ((), ())
45+
assert varnames(E) == (("x",), ())
46+
assert varnames(F) == ((), ())
4747

4848

4949
def test_formatdef():

0 commit comments

Comments
 (0)