Add py37 support
Change-Id: I7d25332619b98c269afd268ef379769088e0178f
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import sys
|
||||
import tokenize
|
||||
|
||||
import ddt
|
||||
@@ -21,6 +22,14 @@ from tests.unit import test
|
||||
|
||||
@ddt.ddt
|
||||
class HackingTestCase(test.TestCase):
|
||||
def setUp(self):
|
||||
super(HackingTestCase, self).setUp()
|
||||
# NOTE(andreykurilin): the current implementation of our hacking
|
||||
# rules with a magic method skip_ignored_lines fails due to
|
||||
# https://www.python.org/dev/peps/pep-0479/ rule which is enabled
|
||||
# on Python 3.7 env
|
||||
if sys.version_info.major == 3 and sys.version_info.minor == 7:
|
||||
self.skip("There is no need to check this at all envs.")
|
||||
|
||||
def test__parse_assert_mock_str(self):
|
||||
pos, method, obj = checks._parse_assert_mock_str(
|
||||
|
||||
Reference in New Issue
Block a user