Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up to use pytest for our data-driven tests, and switch testcheck over to it #1944

Merged
merged 15 commits into from
Jul 27, 2016
Prev Previous commit
Next Next commit
fix self-check
  • Loading branch information
gnprice committed Jul 27, 2016
commit 6b0860b7e628b0893409bd687a3f000619ff57a3
4 changes: 2 additions & 2 deletions mypy/test/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from os import remove, rmdir
import shutil

import pytest
import pytest # type: ignore
from typing import Callable, List, Tuple, Set, Optional

from mypy.myunit import TestCase, SkipTestCaseException
Expand Down Expand Up @@ -370,7 +370,7 @@ def collect(self):


class MypyDataCase(pytest.Item):
def __init__(self, name: str, parent: MypyDataSuite, obj: DataDrivenTestCase):
def __init__(self, name: str, parent: MypyDataSuite, obj: DataDrivenTestCase) -> None:
self.skip = False
if name.endswith('-skip'):
self.skip = True
Expand Down