Skip to content

Commit d76c016

Browse files
committed
Backwards compatibility handling
1 parent 7021d48 commit d76c016

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ repos:
1919
- id: forbid-new-submodules
2020
exclude: (example)
2121

22-
- repo: https://github.com/pre-commit/mirrors-yapf
23-
rev: v0.30.0
22+
- repo: https://github.com/google/yapf
23+
rev: v0.43.0
2424
hooks:
2525
- id: yapf
2626
name: yapf

tests/test_cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Tests for the CLI system
33
"""
4+
import contextlib
45
import os
56
from pathlib import Path
67
import pytest
@@ -453,12 +454,14 @@ def test_help(nabis2_project_dir):
453454

454455
def _check_dos_atom_orbital_plots(output):
455456
print(output.stdout)
456-
print(output.stderr)
457+
with contextlib.suppress(Exception):
458+
print(output.stderr)
457459
print(output)
458460
assert output.exit_code == 0
459461
assert Path('unfold.png').is_file()
460462
Path('unfold.png').unlink()
461463

464+
462465
def test_dos_atom_orbital_plots(nabis2_project_dir):
463466
"""Test various dos/atom/orbital etc plot options with NaBiS2"""
464467
os.chdir(nabis2_project_dir)

0 commit comments

Comments
 (0)