mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-15 02:54:09 -04:00
add py2 tests
This commit is contained in:
parent
6304994ed4
commit
2f114469b5
3 changed files with 3 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -68,7 +68,7 @@ pretest:
|
||||||
python scripts/gen_individual_importing_tests.py
|
python scripts/gen_individual_importing_tests.py
|
||||||
|
|
||||||
TEST_ENV = PYTHONPATH="`pwd`:`pwd`/tests/lib"
|
TEST_ENV = PYTHONPATH="`pwd`:`pwd`/tests/lib"
|
||||||
TEST_FILES = tests/style/*.t tests/unit/*.py tests/unit-generated/*.py tests/individually-importing/*.py
|
TEST_FILES = tests/style/*.t tests/unit-generated/*.py tests/individually-importing/*.py
|
||||||
|
|
||||||
define RUN_TESTS
|
define RUN_TESTS
|
||||||
$(TEST_ENV) $1 $(TEST_FILES)
|
$(TEST_ENV) $1 $(TEST_FILES)
|
||||||
|
|
|
@ -215,6 +215,7 @@ print('ok 1 - imported')
|
||||||
for ver in [2, 3]:
|
for ver in [2, 3]:
|
||||||
for mod in [
|
for mod in [
|
||||||
'pysol_tests.acard_unit',
|
'pysol_tests.acard_unit',
|
||||||
|
'pysol_tests.hint',
|
||||||
'pysol_tests.import_file1',
|
'pysol_tests.import_file1',
|
||||||
'pysol_tests.latin1_conv_unit',
|
'pysol_tests.latin1_conv_unit',
|
||||||
'pysol_tests.ms_deals1',
|
'pysol_tests.ms_deals1',
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
# Written by Shlomi Fish, under the MIT Expat License.
|
# Written by Shlomi Fish, under the MIT Expat License.
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
@ -22,7 +21,7 @@ class MyTests(unittest.TestCase):
|
||||||
# diag('got == ' + got)
|
# diag('got == ' + got)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def mymain():
|
||||||
from pycotap import TAPTestRunner
|
from pycotap import TAPTestRunner
|
||||||
suite = unittest.TestLoader().loadTestsFromTestCase(MyTests)
|
suite = unittest.TestLoader().loadTestsFromTestCase(MyTests)
|
||||||
TAPTestRunner().run(suite)
|
TAPTestRunner().run(suite)
|
Loading…
Add table
Reference in a new issue