Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.python Subject: Re: Linux users: please run gui tests Date: Fri, 07 Aug 2015 12:59:09 +0200 Organization: Decebal Computing Lines: 65 Message-ID: <87d1yzfjpe.fsf@Equus.decebal.nl> References: <87wpx7fsb9.fsf@Equus.decebal.nl> <87si7vfqwn.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="8414"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dBmRmWHbKzC+OSyC7jmYQtLs2CnDiVIs=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:YxN53d/3DNsy9iZPL4+G+FKQmzE= sha1:RFeqGckU/u5FgegwVcoqil/iJz8= Xref: csiph.com comp.lang.python:95117 On Friday 7 Aug 2015 11:15 CEST, Peter Otten wrote: > Cecil Westerhof wrote: > >>> python3 --version >>> python3 -m test -ugui test_tk test_ttk_guionly test_idle >>> >>> This gives: >>> Python 3.4.1 >>> [1/3] test_tk >>> [2/3] test_ttk_guionly >>> [3/3] test_idle >>> All 3 tests OK. >>> >>> This was on openSUSE 13.2. >>> >>> I also tried to run it on Debian, but there I get: >>> No moduke named test.__main__; 'test' is a package and cannot be >>> directly executed >> >> I also tried it on an Ubuntu system: there I got the same error. >> (Not very strange because it is a Debian derivative.) > > By default Debian doesn't install the test suite -- that's why you > cannot run it ;) > > Install it with > > $ sudo apt-get install libpython3.4-testsuite > > and then try again. python3-tk needs also to be installed. I changed the script to: uname -mrs python3 --version start=$(date +%s) python3 -m test -ugui test_tk test_ttk_guionly test_idle end=$(date +%s) printf "Running the tests took %d seconds\n" $((end - start)) On my openSUSE system this gives: Linux 3.16.7-21-desktop x86_64 Python 3.4.1 [1/3] test_tk [2/3] test_ttk_guionly [3/3] test_idle All 3 tests OK. Running the tests took 20 seconds On the Debian system this gives: Linux 3.16.0-4-586 i686 Python 3.4.2 [1/3] test_tk [2/3] test_ttk_guionly [3/3] test_idle All 3 tests OK. Running the tests took 16 seconds -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof