diff options
author | Marco Poletti <poletti.marco@gmail.com> | 2017-04-09 09:51:17 +0100 |
---|---|---|
committer | Marco Poletti <poletti.marco@gmail.com> | 2017-04-09 09:56:56 +0100 |
commit | cb5c60fed6432804f874a46c6ccb08ecb3802e7b (patch) | |
tree | f5a61ba1e3514b3d8c7fcc9a64e428f1007cb82c /tests/test_required_types.py | |
parent | be745726d2df7449eafb8b9031a4596551915ba5 (diff) | |
download | google-fruit-cb5c60fed6432804f874a46c6ccb08ecb3802e7b.tar.gz |
Migrate Fruit's end-to-end tests from nose2 to pytest, improving parallelization.
Diffstat (limited to 'tests/test_required_types.py')
-rwxr-xr-x | tests/test_required_types.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/test_required_types.py b/tests/test_required_types.py index af20d25..ba98626 100755 --- a/tests/test_required_types.py +++ b/tests/test_required_types.py @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from nose2.tools.params import params - from fruit_test_common import * COMMON_DEFINITIONS = ''' @@ -202,6 +200,6 @@ def test_required_annotated_forward_declared_success(): ''' expect_success(COMMON_DEFINITIONS, source) -if __name__ == '__main__': - import nose2 - nose2.main() +if __name__== '__main__': + code = pytest.main(args=[os.path.realpath(__file__)]) + exit(code) |