File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ def testAddLiteral(self):
112
112
"""Test adding a literal to an operator node."""
113
113
op = self .op
114
114
115
- self .assertRaises (ValueError , op .getValue )
115
+ self .assertRaises (TypeError , op .getValue )
116
116
op ._value = 1
117
117
self .assertEqual (op .getValue (), 1 )
118
118
@@ -121,7 +121,7 @@ def testAddLiteral(self):
121
121
b = literals .Argument (name = "b" , value = 0 )
122
122
123
123
op .addLiteral (a )
124
- self .assertRaises (ValueError , op .getValue )
124
+ self .assertRaises (TypeError , op .getValue )
125
125
126
126
op .addLiteral (b )
127
127
self .assertAlmostEqual (0 , op .value )
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ def testSimpleFunction(self):
195
195
self .assertTrue (plus2 .hasObserver (mult ._flush ))
196
196
197
197
# plus2 has no arguments yet. Verify this.
198
- self .assertRaises (ValueError , mult .getValue )
198
+ self .assertRaises (TypeError , mult .getValue )
199
199
# Add the arguments to plus2.
200
200
plus2 .addLiteral (v4 )
201
201
plus2 .addLiteral (v5 )
You can’t perform that action at this time.
0 commit comments