make testall: Warning imported binding for oct/dec overwritten in module Main

71 views
Skip to first unread message

Federico Calboli

unread,
Aug 18, 2014, 9:31:30 AM8/18/14
to juli...@googlegroups.com
Hi, I'm on OS X 10.9.4, julia Version 0.4.0-dev+200 (2014-08-18 12:54 UTC) Commit ea7b453 (0 days old master), which I just got from the git repo by git fetch && git merge origin.

Make testall gives a SUCCESS with two warnings:

Warning: imported binding for oct overwritten in module Main
Warning: imported binding for dec overwritten in module Main

Can these be ignored?  what's up?

BW

F

Jacob Quinn

unread,
Aug 18, 2014, 9:42:28 AM8/18/14
to juli...@googlegroups.com
Yes, this can be ignored for now. I need to clean up some local variables in the new dates test suite.

-Jacob

Stefan Karpinski

unread,
Aug 18, 2014, 9:43:04 AM8/18/14
to juli...@googlegroups.com
This is because the dates tests overwrite names that have been used. The right solution is to run each test file in an anonymous module so that it doesn't matter what any other test file has done in the same process.

Stefan Karpinski

unread,
Aug 18, 2014, 9:45:16 AM8/18/14
to juli...@googlegroups.com
I think the infrastructure is really at fault here – you should be allowed to use these names consistently within a single test file.

John Myles White

unread,
Aug 18, 2014, 10:06:34 AM8/18/14
to juli...@googlegroups.com
To cope with these kinds of naming conflicts, I’ve come to run:

(A) My entire test suite for package P in a module TestP.
(B) Each test file F for package P in a submodule of TestP called TestF.

Automating that kind of module creation rather than creating individual modules by hand would be great.

 — John

Jacob Quinn

unread,
Aug 18, 2014, 7:47:14 PM8/18/14
to juli...@googlegroups.com
P.S. Should be fixed now. I wrapped the dates tests in their own module.
Reply all
Reply to author
Forward
0 new messages