diff --git a/oschmod/__init__.py b/oschmod/__init__.py index 1e75830..1f1e035 100644 --- a/oschmod/__init__.py +++ b/oschmod/__init__.py @@ -31,7 +31,9 @@ import re import stat import string +import sys +PATHLIB_ERROR = "Pathlib not supported for py26""" + + mock_sys.version = '2.6.0' + + with pytest.raises(RuntimeError, match='Pathlib not supported for