8000 Merge branch 'add_tests' into myfixes · pythonnet/pythonnet@3cc73da · GitHub
[go: up one dir, main page]

Skip to content

Commit 3cc73da

Browse files
committed
Merge branch 'add_tests' into myfixes
2 parents 44bb0ec + 31182a9 commit 3cc73da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tests/test_suite/test_callback.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ class CallbackTests(unittest.TestCase):
1616
def testDefaultForNull(self):
1717
"""Test that C# can use null for an optional python argument"""
1818
retVal = test_instance.Call_simpleDefaultArg_WithNull(__name__)
19-
self.assertEquals(retVal, 'test')
19+
pythonRetVal = simpleDefaultArg(None)
20+
self.assertEquals(retVal, pythonRetVal)
2021

2122
def testDefaultForNone(self):
2223
"""Test that C# can use no argument for an optional python argument"""
2324
retVal = test_instance.Call_simpleDefaultArg_WithEmptyArgs(__name__)
24-
self.assertEquals(retVal, 'test')
25+
pythonRetVal = simpleDefaultArg()
26+
self.assertEquals(retVal, pythonRetVal)
2527

2628
def test_suite():
2729
return unittest.makeSuite(CallbackTests)

0 commit comments

Comments
 (0)
0