File: test_iread_path.py

package info (click to toggle)
python-ase 3.22.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,344 kB
  • sloc: python: 126,379; xml: 946; makefile: 111; javascript: 47
file content (10 lines) | stat: -rw-r--r-- 207 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
from pathlib import Path
import pytest
from ase.io import iread


def test_iread_path():
    path = Path('hello')
    iterator = iread(path)
    with pytest.raises(FileNotFoundError):
        next(iterator)