From 4fb374e764121249ca5b9879246b4d242c831fb9 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 21 Oct 2015 06:11:07 +0200 Subject: [PATCH] Fix test_run_vulture when frozen. --- tests/unit/scripts/test_run_vulture.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/unit/scripts/test_run_vulture.py b/tests/unit/scripts/test_run_vulture.py index 1b152540e..cf68b6dad 100644 --- a/tests/unit/scripts/test_run_vulture.py +++ b/tests/unit/scripts/test_run_vulture.py @@ -18,11 +18,19 @@ # You should have received a copy of the GNU General Public License # along with qutebrowser. If not, see . +import sys import textwrap import pytest -from scripts.dev import run_vulture +try: + from scripts.dev import run_vulture +except ImportError: + if hasattr(sys, 'frozen'): + # Tests aren't going to run anyways because of the mark + pass + else: + raise pytestmark = [pytest.mark.not_frozen]