diff --git a/IPython/core/tests/test_profile.py b/IPython/core/tests/test_profile.py index 07f43e4..2732a8c 100644 --- a/IPython/core/tests/test_profile.py +++ b/IPython/core/tests/test_profile.py @@ -70,15 +70,6 @@ def teardown_module(): #----------------------------------------------------------------------------- # Test functions #----------------------------------------------------------------------------- -def win32_without_pywin32(): - if sys.platform == 'win32': - try: - import pywin32 - except ImportError: - return True - return False - - class ProfileStartupTest(TestCase): def setUp(self): # create profile dir @@ -102,12 +93,10 @@ class ProfileStartupTest(TestCase): def validate(self, output): tt.ipexec_validate(self.fname, output, '', options=self.options) - @dec.skipif(win32_without_pywin32(), "Test requires pywin32 on Windows") def test_startup_py(self): self.init('00-start.py', 'zzz=123\n', 'print(zzz)\n') self.validate('123') - @dec.skipif(win32_without_pywin32(), "Test requires pywin32 on Windows") def test_startup_ipy(self): self.init('00-start.ipy', '%xmode plain\n', '') self.validate('Exception reporting mode: Plain') diff --git a/IPython/core/tests/test_run.py b/IPython/core/tests/test_run.py index c593a82..742b6b2 100644 --- a/IPython/core/tests/test_run.py +++ b/IPython/core/tests/test_run.py @@ -237,11 +237,6 @@ class TestMagicRunSimple(tt.TempFileMixin): def test_obj_del(self): """Test that object's __del__ methods are called on exit.""" - if sys.platform == 'win32': - try: - import win32api - except ImportError as e: - raise unittest.SkipTest("Test requires pywin32") from e src = ("class A(object):\n" " def __del__(self):\n" " print('object A deleted')\n" diff --git a/appveyor.yml b/appveyor.yml index 8f9841f..c370275 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -26,7 +26,7 @@ init: install: - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" - python -m pip install --upgrade setuptools pip - - pip install nose coverage pytest pytest-cov pytest-trio pywin32 matplotlib pandas + - pip install nose coverage pytest pytest-cov pytest-trio matplotlib pandas - pip install -e .[test] - mkdir results - cd results