1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

add py2 tests

This commit is contained in:
Shlomi Fish 2018-05-01 17:52:17 +03:00
parent 6304994ed4
commit 2f114469b5
3 changed files with 3 additions and 3 deletions

View file

@ -68,7 +68,7 @@ pretest:
python scripts/gen_individual_importing_tests.py
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
$(TEST_ENV) $1 $(TEST_FILES)

View file

@ -215,6 +215,7 @@ print('ok 1 - imported')
for ver in [2, 3]:
for mod in [
'pysol_tests.acard_unit',
'pysol_tests.hint',
'pysol_tests.import_file1',
'pysol_tests.latin1_conv_unit',
'pysol_tests.ms_deals1',

View file

@ -1,4 +1,3 @@
#!/usr/bin/env python3
# Written by Shlomi Fish, under the MIT Expat License.
import unittest
@ -22,7 +21,7 @@ class MyTests(unittest.TestCase):
# diag('got == ' + got)
if __name__ == '__main__':
def mymain():
from pycotap import TAPTestRunner
suite = unittest.TestLoader().loadTestsFromTestCase(MyTests)
TAPTestRunner().run(suite)