Skip to content

Commit 3d63ffe

Browse files
authored
use dirname(@__FILE__) rather than Pkg.dir
otherwise the package won't pass its tests if installed outside the package directory
1 parent 1123351 commit 3d63ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ a = SQLite.DB()
1212
temp = tempname()
1313
SQLite.DB(temp)
1414

15-
db = SQLite.DB(joinpath(Pkg.dir("SQLite"),"test/Chinook_Sqlite.sqlite"))
15+
db = SQLite.DB(joinpath(dirname(@__FILE__),"Chinook_Sqlite.sqlite"))
1616

1717
so = SQLite.Source(db,"SELECT name FROM sqlite_master WHERE type='table';")
1818
ds = Data.stream!(so,DataFrame)

0 commit comments

Comments
 (0)