On 03/21/2017 02:51 PM, Luigi Baldoni wrote:
Luigi Baldoni wrote
I was running %python_expand %python_exec %{_bindir}/nosetests-%{$python_version}. Both this and %python_exec -m nose end with a "Unknown option s in python_expand()", while %python_expand nosetests-%{$python_bin_suffix} end with "Unknown option s in python_expand()", "Unknown option m in python_exec()" and "Unknown option m in python_expand()".
All three of the above fail a test in the form of a "UnicodeDecodeError", which wasn't originally a problem in the plain python 2.x package.
Addendum: according to the module developers, the right way to run the tests is executing either test/alltests.py or test3/alltests.py. I've tried various incarnations of %python_exec -c but I couldn't come up with a way to use the correct interpreter with the correct script.
Am I missing something or do I really need a more complex script?
Is there a pointer to your project/package? Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU Distinguished Architect LINUX Team Lead Public Cloud rjschwei@suse.com IRC: robjo -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org