- Remove unneeded BuildRequires on python2. - Switch to %pytest macro. OBS-URL: https://build.opensuse.org/request/show/1009251 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dockerpty?expand=0&rev=6