Mercurial > hgrepos > Python2 > PyMuPDF
comparison tests/test_flake8.py @ 39:a6bc019ac0b2 upstream
ADD: PyMuPDF v1.26.5: the original sdist.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 11 Oct 2025 11:19:58 +0200 |
| parents | 1d09e1dec1d9 |
| children |
comparison
equal
deleted
inserted
replaced
| 2:b50eed0cc0ef | 39:a6bc019ac0b2 |
|---|---|
| 7 | 7 |
| 8 def test_flake8(): | 8 def test_flake8(): |
| 9 ''' | 9 ''' |
| 10 Check rebased Python code with flake8. | 10 Check rebased Python code with flake8. |
| 11 ''' | 11 ''' |
| 12 if os.environ.get('PYODIDE_ROOT'): | |
| 13 print('test_flake8(): not running on Pyodide - cannot run child processes.') | |
| 14 return | |
| 15 | |
| 12 if not hasattr(pymupdf, 'mupdf'): | 16 if not hasattr(pymupdf, 'mupdf'): |
| 13 print(f'Not running flake8 with classic implementation.') | 17 print(f'Not running flake8 with classic implementation.') |
| 14 return | 18 return |
| 15 ignores = ( | 19 ignores = ( |
| 16 'E123', # closing bracket does not match indentation of opening bracket's line | 20 'E123', # closing bracket does not match indentation of opening bracket's line |
