From 9219398d83af4f902801839fb111f69b7a97330d Mon Sep 17 00:00:00 2001 From: Andrew Grigorev Date: Thu, 21 Mar 2019 03:48:44 +0300 Subject: [PATCH] tests: fix #1754 --- dvc/__init__.py | 1 + tests/test_install.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/dvc/__init__.py b/dvc/__init__.py index 2293c96e6..1228f2df3 100644 --- a/dvc/__init__.py +++ b/dvc/__init__.py @@ -57,6 +57,7 @@ if os.path.exists(os.path.join(HOMEPATH, "setup.py")): if ( os.getenv("APPVEYOR_REPO_TAG", "").lower() != "true" and os.getenv("TRAVIS_TAG", "") == "" + and os.getenv("DVC_TEST", "").lower() != "true" ): __version__ = _update_version_file() else: # pragma: no cover diff --git a/tests/test_install.py b/tests/test_install.py index 54cf8f80f..df0c45403 100644 --- a/tests/test_install.py +++ b/tests/test_install.py @@ -1,10 +1,15 @@ import os +import sys +import unittest from dvc.main import main from tests.basic_env import TestDvc +@unittest.skipIf( + sys.platform == "win32", "Git hooks aren't supported on Windows" +) class TestInstall(TestDvc): def test(self): ret = main(["install"])