diff options
-rw-r--r-- | t/superuser--suggests.t | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/t/superuser--suggests.t b/t/superuser--suggests.t index 8e1fbf48..2376b166 100644 --- a/t/superuser--suggests.t +++ b/t/superuser--suggests.t @@ -17,10 +17,12 @@ use lib '.', 't'; use helper; use urpm::util; use Test::More; -if (are_weak_deps_supported()) { - plan 'no_plan'; -} else { - plan skip_all => "Weak dependencies support is needed for those tests" ; +BEGIN { + if (are_weak_deps_supported()) { + plan 'no_plan'; + } else { + plan skip_all => "Weak dependencies support is needed for those tests" ; + } } |