-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Run unittests #1650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run unittests #1650
Conversation
# yield | ||
# finally: | ||
# if have_gc: | ||
# gc.enable() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should probably still yield here, since it's a context manager. Unless @contextlib.contextmanager
works with non-generators.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
compiler/src/symboltable.rs
Outdated
ast::StringGroup::FormattedValue { value, .. } => { | ||
ast::StringGroup::FormattedValue { | ||
value, | ||
conversion: _, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is what's causing the failure, in both this and the other PR. You can just add ..
after the fields you actually use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed that at #1625. You can ignore the changes there as I will rebase once it is in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay, I didn't realize that that was passing now; I merged it.
vm/src/stdlib/faulthandler.rs
Outdated
eprintln!("Stack (most recent call first):"); | ||
|
||
Ref::map(vm.frames.borrow(), |frames| { | ||
&for frame in frames { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just for frame in vm.frames.borrow() { ... }
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure... Fixed
vm/src/stdlib/time_module.rs
Outdated
@@ -264,6 +264,7 @@ pub fn make_module(vm: &VirtualMachine) -> PyObjectRef { | |||
"strptime" => ctx.new_rustfunc(time_strptime), | |||
"sleep" => ctx.new_rustfunc(time_sleep), | |||
"struct_time" => struct_time_type, | |||
"time" => ctx.new_rustfunc(time_time) | |||
"time" => ctx.new_rustfunc(time_time), | |||
"perf_counter" => ctx.new_rustfunc(time_time), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a TODO here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
This is sincerely great news! |
@@ -0,0 +1,5 @@ | |||
# We import importlib *ASAP* in order to test #15386 | |||
import importlib | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to place the libregrtest
folder outside the Lib
folder? Or has this discussion already happened?
382d8b0
to
88c477f
Compare
This change include many different changes that allows us to run the CPython test using
libregtest
. After the change you can do:This change is based on the change in #1625.