File tree 5 files changed +22
-23
lines changed
5 files changed +22
-23
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ jobs:
118
118
# This is needed for now because cffi has no cp310 wheels
119
119
CIBW_BEFORE_ALL_LINUX : " yum -y install libffi-devel"
120
120
CIBW_TEST_EXTRAS : " test"
121
- CIBW_TEST_COMMAND : " python {project}/tests/__init__.py "
122
- CIBW_TEST_COMMAND_WINDOWS : " python {project}\\ tests\\ __init__.py "
121
+ CIBW_TEST_COMMAND : " python -m unittest discover -v {project}/tests"
122
+ CIBW_TEST_COMMAND_WINDOWS : " python -m unittest discover -v {project}\\ tests"
123
123
CIBW_TEST_SKIP : " *universal2:arm64"
124
124
125
125
- uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change 47
47
48
48
49
49
test :
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
52
52
53
53
54
54
testinstalled :
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):
13
13
14
14
pyximport .install ()
15
15
16
- from tests import cython_helper
16
+ import cython_helper
17
17
18
18
self .assertTrue (cython_helper .capsule_equals (cap1 , cap2 ))
19
19
self .assertFalse (cython_helper .capsule_equals (cap1 , cap3 ))
You can’t perform that action at this time.
0 commit comments