File: _testtools.py

package info (click to toggle)
python-plumbum 1.6.2-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 492 kB
  • ctags: 1,033
  • sloc: python: 5,397; makefile: 5
file content (12 lines) | stat: -rw-r--r-- 357 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
import pytest
import os
import sys

skip_without_chown = pytest.mark.skipif(not hasattr(os, "chown"),
        reason="os.chown not supported")

skip_without_tty = pytest.mark.skipif(not sys.stdin.isatty(),
        reason="Not a TTY")

skip_on_windows = pytest.mark.skipif(sys.platform == "win32",
        reason="Windows not supported for this test (yet)")