Add py37 support

Change-Id: I7d25332619b98c269afd268ef379769088e0178f
This commit is contained in:
Andrey Kurilin
2018-08-17 14:38:58 +03:00
parent 9527c16a65
commit 4d0e93d3a5
5 changed files with 33 additions and 3 deletions

View File

@@ -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(