Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
Fix rake unittest with multiple pythons are installed (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmelnikow authored Mar 22, 2019
1 parent 554af38 commit 36765de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ def command_is_in_path?(command)
end

task :unittest do
raise unless system "nose2 --attribute '!missing_assets'"
if command_is_in_path? "nose2-2.7"
raise unless system "nose2-2.7 --attribute '!missing_assets'"
else
raise unless system "nose2 --attribute '!missing_assets'"
end
end

task :lint => :require_style_config do
Expand Down

0 comments on commit 36765de

Please sign in to comment.