File tree Expand file tree Collapse file tree 5 files changed +23
-26
lines changed Expand file tree Collapse file tree 5 files changed +23
-26
lines changed Original file line number Diff line number Diff line change @@ -110,16 +110,14 @@ jobs:
110110 run : |
111111 brew install gnu-sed libtool autoconf automake
112112
113- - uses : pypa/cibuildwheel@v2.8 .0
113+ - uses : pypa/cibuildwheel@v2.9 .0
114114 env :
115115 CIBW_BUILD_VERBOSITY : 1
116116 CIBW_BUILD : ${{ matrix.cibw_python }}
117117 CIBW_ARCHS : ${{ matrix.cibw_arch }}
118- # This is needed for now because cffi has no cp310 wheels
119- CIBW_BEFORE_ALL_LINUX : " yum -y install libffi-devel"
120118 CIBW_TEST_EXTRAS : " test"
121- CIBW_TEST_COMMAND : " python {project}/tests/__init__.py "
122- CIBW_TEST_COMMAND_WINDOWS : " python {project}\\ tests\\ __init__.py "
119+ CIBW_TEST_COMMAND : " python -m unittest discover -v {project}/tests"
120+ CIBW_TEST_COMMAND_WINDOWS : " python -m unittest discover -v {project}\\ tests"
123121 CIBW_TEST_SKIP : " *universal2:arm64"
124122
125123 - uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change 4747
4848
4949test :
50- PYTHONASYNCIODEBUG=1 $(PYTHON ) -m unittest -v tests.suite
51- $(PYTHON ) -m unittest -v tests.suite
50+ PYTHONASYNCIODEBUG=1 $(PYTHON ) -m unittest discover -v tests
51+ $(PYTHON ) -m unittest discover -v tests
5252
5353
5454testinstalled :
55- cd " $$ {HOME}" && $(PYTHON ) $(ROOT ) /tests/__init__.py
55+ cd " $$ {HOME}" && $(PYTHON ) -m unittest discover -v $(ROOT ) /tests
Original file line number Diff line number Diff line change 1- import os .path
2- import sys
3- import unittest
4- import unittest .runner
5-
6-
7- def suite ():
8- test_loader = unittest .TestLoader ()
9- test_suite = test_loader .discover (
10- os .path .dirname (__file__ ), pattern = 'test_*.py' )
11- return test_suite
12-
13-
14- if __name__ == '__main__' :
15- runner = unittest .runner .TextTestRunner ()
16- result = runner .run (suite ())
17- sys .exit (not result .wasSuccessful ())
Original file line number Diff line number Diff line change 1+ import os .path
2+ import sys
3+ import unittest
4+ import unittest .runner
5+
6+
7+ def suite ():
8+ test_loader = unittest .TestLoader ()
9+ test_suite = test_loader .discover (os .path .dirname (__file__ ))
10+ return test_suite
11+
12+
13+ if __name__ == '__main__' :
14+ runner = unittest .runner .TextTestRunner ()
15+ result = runner .run (suite ())
16+ sys .exit (not result .wasSuccessful ())
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def test_libuv_get_loop_t_ptr(self):
1313
1414 pyximport .install ()
1515
16- from tests import cython_helper
16+ import cython_helper
1717
1818 self .assertTrue (cython_helper .capsule_equals (cap1 , cap2 ))
1919 self .assertFalse (cython_helper .capsule_equals (cap1 , cap3 ))
You can’t perform that action at this time.
0 commit comments