Coverage for pyfields/tests/issues/test_issue_67.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-11-06 16:35 +0000

1# Authors: Sylvain Marie <sylvain.marie@se.com> 

2# 

3# Copyright (c) Schneider Electric Industries, 2020. All right reserved. 

4import sys 

5 

6import pytest 

7 

8from pyfields import get_fields 

9 

10 

11@pytest.mark.skipif(sys.version_info < (3, 6), reason="member type hints not supported in python < 3.6") 

12def test_issue_67(): 

13 from ._test_py36 import test_issue_67 

14 Frog = test_issue_67() 

15 

16 assert len(get_fields(Frog)) == 1 

17 Frog()