Skip to content
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.

Current dir is on classpath during run test #94

Closed
som-snytt opened this issue Jan 31, 2018 · 3 comments
Closed

Current dir is on classpath during run test #94

som-snytt opened this issue Jan 31, 2018 · 3 comments

Comments

@som-snytt
Copy link
Contributor

It looks like cwd is on the classpath when partest runs. A REPL test fails because it tries to run method test imported from a previous line (under tweaked name binding). Presumably test package is introduced by ./test/files.

scala> for (i <- 1 to 8) test(i)
<console>:16: error: reference to test is ambiguous;
it is both defined in package <root> and imported subsequently by
import test
       for (i <- 1 to 8) test(i)
                         ^
@SethTisue
Copy link
Member

gah

@som-snytt
Copy link
Contributor Author

som-snytt commented Jan 31, 2018

Well, maybe something else is going on. I'll check it out soon.

Edit: since I'm not going to make it to fifth grade band concert, I changed the method to ftest and it ran as expected.

@SethTisue
Copy link
Member

closing old scala-partest issues that seem unlikely to get noticed here now that we've re-in-sourced

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants