In Python 2.7 the following calls:
Schema(IsDir())(3)
Schema(IsFile())(3)
Schema(PathExists())(3)
raise:
TypeError: coercing to Unicode: need string or buffer, int found
but in Python 3.x they respectively result in:
- voluptuous.error.MultipleInvalid: not a directory
- voluptuous.error.MultipleInvalid: not a file
- voluptuous.error.MultipleInvalid: path does not exist
In Python 2.7 the following calls:
Schema(IsDir())(3)Schema(IsFile())(3)Schema(PathExists())(3)raise:
but in Python 3.x they respectively result in: