Skip to content

Commit d0e27bb

Browse files
committed
Move varargs.py to functional tests.
1 parent 190d9ee commit d0e27bb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
File renamed without changes.

src/processor/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ impl fmt::Display for ProcessorError {
3333
#[derive(Debug)]
3434
pub enum PyResult {
3535
Return(ObjectRef),
36+
Raise(ObjectRef),
3637
}
3738

3839

@@ -202,6 +203,7 @@ impl<EP: EnvProxy> Processor<EP> {
202203
let ret = try!(self.call_function(namespace, &func, args, kwargs));
203204
match ret {
204205
PyResult::Return(obj_ref) => stacks.var_stack.push(obj_ref),
206+
PyResult::Raise(obj_ref) => return Ok(PyResult::Raise(obj_ref))
205207
};
206208
},
207209
Instruction::MakeFunction(0, 0, 0) => {

0 commit comments

Comments
 (0)