Skip to content

Commit 0cc0cd4

Browse files
committed
format is out of line but problem is fixed
1 parent 8e7ade3 commit 0cc0cd4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

nibabel/cmdline/tests/test_utils.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@
1515

1616

1717
class TestObject:
18-
def __init__(self, test):
18+
def __init__(self, test=None):
1919
self.test = test
2020

2121
def get_test(self):
2222
return self.test
2323

24+
test = TestObject()
25+
test.test = 2
26+
2427

2528
def test_table2string():
2629
assert_equal(table2string([["A", "B", "C", "D"], ["E", "F", "G", "H"]]), "A B C D\nE F G H\n")
@@ -38,5 +41,5 @@ def test_ap():
3841

3942

4043
def test_safe_get():
41-
assert_equal(safe_get(TestObject(2), "test"), 2)
42-
assert_equal(safe_get(TestObject(2), "failtest"), "-")
44+
assert_equal(safe_get(test, "test"), 2)
45+
assert_equal(safe_get(test, "failtest"), "-")

0 commit comments

Comments
 (0)