-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Do not require new line or ";" at the end of import expression #11333
Conversation
Also possible now. julia> begin using Base end
julia> (using Base) |
The 64bit windows CI hang on |
Yeah, it does that occasionally. Suggestions for what to do about that very welcome. Probably related to #7942. |
@tkelman It might also be good to do a few |
@@ -83,3 +83,14 @@ macro test999_str(args...); args; end | |||
|
|||
# issue #10994 | |||
@test parse("1 + #= \0 =# 2") == :(1 + 2) | |||
|
|||
# issue #10910 | |||
@test parse(":(using A)") == :(:(using A)) |
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'm not sure this really counts as a test of the parser; it only tests that the parse
function does the same thing as the parser used to read source files. You have to examine the parsed expression in some other way.
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.
On May 22, 2015 12:00 PM, "Jeff Bezanson" notifications@github.com wrote:
In test/parser.jl:
@@ -83,3 +83,14 @@ macro test999_str(args...); args; end
issue #10994
@test parse("1 + #= \0 =# 2") == :(1 + 2)
+
+# issue #10910
+@test parse(":(using A)") == :(:(using A))I'm not sure this really counts as a test of the parser; it only tests
that the parse function does the same thing as the parser used to read
source files. You have to examine the parsed expression in some other way.
I see your point . The original goal is to just make sure it doesn't raise
an error. I guess making the @test
actually test sth is better.
—
Reply to this email directly or view it on GitHub.
Rebased and updated the test. |
@@ -86,3 +86,14 @@ macro test999_str(args...); args; end | |||
|
|||
# issue #10985 | |||
@test expand(:(f(::Int...) = 1)).head == :method | |||
|
|||
# issue #10910 | |||
@test parse(":(using A)") == Expr(:quote, :(using A)) |
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.
This still doesn't test the parser. If using A
were parsed as the number 42, this test would still pass.
Updated. |
Do not require new line or ";" at the end of import expression
I saw this CI failure right after my PR is merged. It looks totally unrelated and disappears after another totally unrelated PR but has this appeared somewhere else before? |
I saw the same thing in #11432. |
Yeah, this has been happening sporadically for at least the past month (see https://travis-ci.org/JuliaLang/julia/jobs/60371436). Is there an API to download and/or search through travis' logs? |
Is there anything wrong with "Worker 6" (Edit: on 64bit) ??? https://travis-ci.org/JuliaLang/julia/jobs/64106038 (Edit2: I guess Worker 9 is also involved in one of them...) |
That's a really good idea. Travis does have an API, see http://docs.travis-ci.com/api/, though I haven't personally used the log-related parts of it. |
WIP: Fix import breakage due to JuliaLang/julia#11333
This is the first time I write scheme so it's very likely I've got sth wrong.
Fix #10910
@mlubin
@JeffBezanson