We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7db46e5 commit 403b60dCopy full SHA for 403b60d
1 file changed
src/tests/test_class.py
@@ -130,10 +130,9 @@ def testStructConstruction(self):
130
"""Test construction of structs."""
131
from System.Drawing import Point
132
133
- def test():
134
- p = Point()
135
-
136
- self.assertRaises(TypeError, test)
+ p = Point()
+ self.assertTrue(p.X == 0)
+ self.assertTrue(p.Y == 0)
137
138
p = Point(0, 0)
139
self.assertTrue(p.X == 0)
0 commit comments