Show More
@@ -70,15 +70,6 b' def teardown_module():' | |||
|
70 | 70 | #----------------------------------------------------------------------------- |
|
71 | 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 | 73 | class ProfileStartupTest(TestCase): |
|
83 | 74 | def setUp(self): |
|
84 | 75 | # create profile dir |
@@ -102,12 +93,10 b' class ProfileStartupTest(TestCase):' | |||
|
102 | 93 | def validate(self, output): |
|
103 | 94 | tt.ipexec_validate(self.fname, output, '', options=self.options) |
|
104 | 95 | |
|
105 | @dec.skipif(win32_without_pywin32(), "Test requires pywin32 on Windows") | |
|
106 | 96 | def test_startup_py(self): |
|
107 | 97 | self.init('00-start.py', 'zzz=123\n', 'print(zzz)\n') |
|
108 | 98 | self.validate('123') |
|
109 | 99 | |
|
110 | @dec.skipif(win32_without_pywin32(), "Test requires pywin32 on Windows") | |
|
111 | 100 | def test_startup_ipy(self): |
|
112 | 101 | self.init('00-start.ipy', '%xmode plain\n', '') |
|
113 | 102 | self.validate('Exception reporting mode: Plain') |
@@ -237,11 +237,6 b' class TestMagicRunSimple(tt.TempFileMixin):' | |||
|
237 | 237 | |
|
238 | 238 | def test_obj_del(self): |
|
239 | 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 | 240 | src = ("class A(object):\n" |
|
246 | 241 | " def __del__(self):\n" |
|
247 | 242 | " print('object A deleted')\n" |
@@ -26,7 +26,7 b' init:' | |||
|
26 | 26 | install: |
|
27 | 27 | - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" |
|
28 | 28 | - python -m pip install --upgrade setuptools pip |
|
29 |
- pip install nose coverage pytest pytest-cov pytest-trio |
|
|
29 | - pip install nose coverage pytest pytest-cov pytest-trio matplotlib pandas | |
|
30 | 30 | - pip install -e .[test] |
|
31 | 31 | - mkdir results |
|
32 | 32 | - cd results |
General Comments 0
You need to be logged in to leave comments.
Login now