Fix test_run_vulture when frozen.

This commit is contained in:
Florian Bruhin 2015-10-21 06:11:07 +02:00
parent aba31babca
commit 4fb374e764

View File

@ -18,11 +18,19 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>. # along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
import sys
import textwrap import textwrap
import pytest 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] pytestmark = [pytest.mark.not_frozen]