##// END OF EJS Templates
TST: Remove unneeded requirement on pywin32...
Nikita Kniazev -
Show More
@@ -70,15 +70,6 b' def teardown_module():'
70 #-----------------------------------------------------------------------------
70 #-----------------------------------------------------------------------------
71 # Test functions
71 # Test functions
72 #-----------------------------------------------------------------------------
72 #-----------------------------------------------------------------------------
73 def win32_without_pywin32():
74 if sys.platform == 'win32':
75 try:
76 import pywin32
77 except ImportError:
78 return True
79 return False
80
81
82 class ProfileStartupTest(TestCase):
73 class ProfileStartupTest(TestCase):
83 def setUp(self):
74 def setUp(self):
84 # create profile dir
75 # create profile dir
@@ -102,12 +93,10 b' class ProfileStartupTest(TestCase):'
102 def validate(self, output):
93 def validate(self, output):
103 tt.ipexec_validate(self.fname, output, '', options=self.options)
94 tt.ipexec_validate(self.fname, output, '', options=self.options)
104
95
105 @dec.skipif(win32_without_pywin32(), "Test requires pywin32 on Windows")
106 def test_startup_py(self):
96 def test_startup_py(self):
107 self.init('00-start.py', 'zzz=123\n', 'print(zzz)\n')
97 self.init('00-start.py', 'zzz=123\n', 'print(zzz)\n')
108 self.validate('123')
98 self.validate('123')
109
99
110 @dec.skipif(win32_without_pywin32(), "Test requires pywin32 on Windows")
111 def test_startup_ipy(self):
100 def test_startup_ipy(self):
112 self.init('00-start.ipy', '%xmode plain\n', '')
101 self.init('00-start.ipy', '%xmode plain\n', '')
113 self.validate('Exception reporting mode: Plain')
102 self.validate('Exception reporting mode: Plain')
@@ -237,11 +237,6 b' class TestMagicRunSimple(tt.TempFileMixin):'
237
237
238 def test_obj_del(self):
238 def test_obj_del(self):
239 """Test that object's __del__ methods are called on exit."""
239 """Test that object's __del__ methods are called on exit."""
240 if sys.platform == 'win32':
241 try:
242 import win32api
243 except ImportError as e:
244 raise unittest.SkipTest("Test requires pywin32") from e
245 src = ("class A(object):\n"
240 src = ("class A(object):\n"
246 " def __del__(self):\n"
241 " def __del__(self):\n"
247 " print('object A deleted')\n"
242 " print('object A deleted')\n"
@@ -26,7 +26,7 b' init:'
26 install:
26 install:
27 - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
27 - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
28 - python -m pip install --upgrade setuptools pip
28 - python -m pip install --upgrade setuptools pip
29 - pip install nose coverage pytest pytest-cov pytest-trio pywin32 matplotlib pandas
29 - pip install nose coverage pytest pytest-cov pytest-trio matplotlib pandas
30 - pip install -e .[test]
30 - pip install -e .[test]
31 - mkdir results
31 - mkdir results
32 - cd results
32 - cd results
General Comments 0
You need to be logged in to leave comments. Login now