python: setup.py: how NOT to install C extensions used only by tests

2022-11-30 Thread Bartosz Golaszewski
I have a module that has a tests/ directory which contains a C extension that's only used by test cases. I don't want to install it. I'm building it as a setuptools.Extension() added to setup() using the ext_modules argument. The test directory is not added to setup's pac

byexample: free, open source tool to find snippets of code in your docs and execute them as regression tests

2021-05-03 Thread Martin Di Paola
email is long enough. The full set of features and tutorials are in https://byexamples.github.io (by the way, the examples in that web page are the tests of byexample!) Repo: https://github.com/byexamples/byexample (feel free to submit any issue or question) You can install it with pip: pi

Re: Need tests of turtledemo.colordemo on Windows installations

2020-09-16 Thread Terry Reedy
directories. But when he ran the test suite, 4 tests failed with a numpy import error that Jeremy Kloth says is due to a mix. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: Need tests of turtledemo.colordemo on Windows installations

2020-09-14 Thread MRAB
On 2020-09-14 02:18, Terry Reedy wrote: User Tushar Sadhwani and I both have Win 10 with 3.8.5 installed. When he runs ...> py -3.8 -m turtledemo.colormixer and moves the sliders a reasonable amount, he repeatably gets Fatal Python error: Cannot recover from stack overflow. ... https://bugs.pyth

Re: Need tests of turtledemo.colordemo on Windows installations

2020-09-13 Thread Frank Millman
On 2020-09-14 7:07 AM, Frank Millman wrote: On 2020-09-14 3:18 AM, Terry Reedy wrote: User Tushar Sadhwani and I both have Win 10 with 3.8.5 installed. When he runs ...> py -3.8 -m turtledemo.colormixer and moves the sliders a reasonable amount, he repeatably gets Fatal Python error: Cannot re

Re: Need tests of turtledemo.colordemo on Windows installations

2020-09-13 Thread Frank Millman
On 2020-09-14 3:18 AM, Terry Reedy wrote: User Tushar Sadhwani and I both have Win 10 with 3.8.5 installed.  When he runs ...> py -3.8 -m turtledemo.colormixer and moves the sliders a reasonable amount, he repeatably gets Fatal Python error: Cannot recover from stack overflow. ... https://bugs.p

Need tests of turtledemo.colordemo on Windows installations

2020-09-13 Thread Terry Reedy
User Tushar Sadhwani and I both have Win 10 with 3.8.5 installed. When he runs ...> py -3.8 -m turtledemo.colormixer and moves the sliders a reasonable amount, he repeatably gets Fatal Python error: Cannot recover from stack overflow. ... https://bugs.python.org/issue41758 I have no problem, re

Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Terry Reedy
On 2/18/2019 3:35 PM, Marcin G wrote: Hmm. From looking at your full log (THANK YOU for posting that, btw - so many people don't), it looks like an issue with certificate checking. Might be a bug in the test itself. Does the same thing happen with a more recent Python build? It could be a weirdne

Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Chris Angelico
On Tue, Feb 19, 2019 at 7:55 AM Grant Edwards wrote: > > On 2019-02-18, Chris Angelico wrote: > > > Hmm. From looking at your full log (THANK YOU for posting that, btw - > > so many people don't), it looks like an issue with certificate > > checking. Might be a bug in the test itself. Does the sa

Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Grant Edwards
On 2019-02-18, Chris Angelico wrote: > Hmm. From looking at your full log (THANK YOU for posting that, btw - > so many people don't), it looks like an issue with certificate > checking. Might be a bug in the test itself. Does the same thing > happen with a more recent Python build? It could be a

Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Chris Angelico
On Tue, Feb 19, 2019 at 7:36 AM Marcin G wrote: > > Hmm. From looking at your full log (THANK YOU for posting that, btw - > so many people don't), it looks like an issue with certificate > checking. Might be a bug in the test itself. Does the same thing > happen with a more recent Python build? It

RE: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Marcin G
Hmm. From looking at your full log (THANK YOU for posting that, btw - so many people don't), it looks like an issue with certificate checking. Might be a bug in the test itself. Does the same thing happen with a more recent Python build? It could be a weirdness with specific versions of OpenSSL. H

Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Chris Angelico
failure in a narrow part of SSL handling, one that most code won't hit. > All I want is to have an installation that is not broken. If the above > failures are false positives, I can gladly ignore them; however, since > (unsupressed) warnings and failing tests are usually a sign o

Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Marcin G
en. If the above failures are false positives, I can gladly ignore them; however, since (unsupressed) warnings and failing tests are usually a sign of serious problems, I wonder what should I do get a functional installation? I do believe I should have all dependencies installed. First, I

Re: doubling the number of tests, but not taking twice as long

2018-07-18 Thread Larry Martell
On Wed, Jul 18, 2018 at 7:59 PM, MRAB wrote: > On 2018-07-18 22:40, Larry Martell wrote: >> >> On Tue, Jul 17, 2018 at 11:43 AM, Neil Cerutti wrote: >>> >>> On 2018-07-16, Larry Martell wrote: I had some code that did this: meas_regex = '_M\d+_' meas_re = re.compile(meas

Re: doubling the number of tests, but not taking twice as long

2018-07-18 Thread MRAB
On 2018-07-18 22:40, Larry Martell wrote: On Tue, Jul 17, 2018 at 11:43 AM, Neil Cerutti wrote: On 2018-07-16, Larry Martell wrote: I had some code that did this: meas_regex = '_M\d+_' meas_re = re.compile(meas_regex) if meas_re.search(filename): stuff1() else: stuff2() I then had

Re: doubling the number of tests, but not taking twice as long

2018-07-18 Thread Cameron Simpson
On 18Jul2018 17:40, Larry Martell wrote: On Tue, Jul 17, 2018 at 11:43 AM, Neil Cerutti wrote: On 2018-07-16, Larry Martell wrote: I had some code that did this: meas_regex = '_M\d+_' meas_re = re.compile(meas_regex) if meas_re.search(filename): stuff1() else: stuff2() I then had

Re: doubling the number of tests, but not taking twice as long

2018-07-18 Thread Larry Martell
On Tue, Jul 17, 2018 at 11:43 AM, Neil Cerutti wrote: > On 2018-07-16, Larry Martell wrote: >> I had some code that did this: >> >> meas_regex = '_M\d+_' >> meas_re = re.compile(meas_regex) >> >> if meas_re.search(filename): >> stuff1() >> else: >> stuff2() >> >> I then had to change it t

Re: doubling the number of tests, but not taking twice as long

2018-07-17 Thread Neil Cerutti
On 2018-07-16, Larry Martell wrote: > I had some code that did this: > > meas_regex = '_M\d+_' > meas_re = re.compile(meas_regex) > > if meas_re.search(filename): > stuff1() > else: > stuff2() > > I then had to change it to this: > > if meas_re.search(filename): > if 'MeasDisplay' in f

Re: doubling the number of tests, but not taking twice as long

2018-07-17 Thread Peter Otten
x27;s of files, and it runs > often, so it needs to run very fast. Needless to say, my change has > made it take 2x as long. That is *not* self-evident. Usually stuffX() would take much longer than the initial tests. So the first step would be to verify that if meas_re.search(filen

Re: doubling the number of tests, but not taking twice as long

2018-07-16 Thread Larry Martell
On Mon, Jul 16, 2018 at 6:01 PM, Gilmeh Serda wrote: > On Mon, 16 Jul 2018 14:17:57 -0400, Larry Martell wrote: > >> This code needs to process many tens of 1000's of files, and it runs >> often, so it needs to run very fast. Needless to say, my change has made >> it take 2x as long. Can anyone se

Re: doubling the number of tests, but not taking twice as long

2018-07-16 Thread Stephan Houben
Op 2018-07-16, Larry Martell schreef : > I had some code that did this: > > meas_regex = '_M\d+_' > meas_re = re.compile(meas_regex) > > if meas_re.search(filename): > stuff1() > else: > stuff2() > > I then had to change it to this: > > if meas_re.search(filename): > if 'MeasDisplay' in

doubling the number of tests, but not taking twice as long

2018-07-16 Thread Larry Martell
I had some code that did this: meas_regex = '_M\d+_' meas_re = re.compile(meas_regex) if meas_re.search(filename): stuff1() else: stuff2() I then had to change it to this: if meas_re.search(filename): if 'MeasDisplay' in filename: stuff1a() else: stuff1() else:

Re: How best to initialize in unit tests?

2017-10-04 Thread Steve D'Aprano
On Thu, 5 Oct 2017 02:23 am, Skip Montanaro wrote: [...] >> Ew. Sounds like a badly designed package. > > I will refer interested readers to the nose documentation: > > https://nose.readthedocs.io/en/latest/doc_tests/test_init_plugin/init_plugin.html > > where the author writes, "Many applicati

Re: How best to initialize in unit tests?

2017-10-04 Thread Skip Montanaro
that we're discussing Python, in a Python > group, what are senses are relevant? I have to test an entire application, which involves at least one package, unit tests and doctests. I suppose I should have used the word "application." My apology. > >> You probably have sp

Re: How best to initialize in unit tests?

2017-10-04 Thread Steve D'Aprano
> You probably have specific unit > tests, maybe some doctests scattered around in doc strings. Further, > suppose that package requires you call an initialize function of some > sort. Where does that go? Ew. Sounds like a badly designed package. Importing the package should initialise

Re: How best to initialize in unit tests?

2017-10-04 Thread Christopher Reimer
On Oct 4, 2017, at 6:07 AM, Skip Montanaro wrote: > > Suppose you want to test a package (in the general sense of the word, > not necessarily a Python package). You probably have specific unit > tests, maybe some doctests scattered around in doc strings. Further, > suppose that p

Re: How best to initialize in unit tests?

2017-10-04 Thread Skip Montanaro
> I've not had this problem myself, but py.test has the idea of "autouse > fixtures" which would work for this situation. Define your setup call > in a function, declare it with the pytest.fixture decorator with > autouse=True, and it'll be run before every test. The declaration goes > in a conftes

Re: How best to initialize in unit tests?

2017-10-04 Thread Paul Moore
ourself (although I believe it does discover unittest and doctest tests, so you don't need to change all your tests over). There's an example of an autouse fixture in pip's test suite, although it's massively more complex than what you're describing, so don't be put

How best to initialize in unit tests?

2017-10-04 Thread Skip Montanaro
Suppose you want to test a package (in the general sense of the word, not necessarily a Python package). You probably have specific unit tests, maybe some doctests scattered around in doc strings. Further, suppose that package requires you call an initialize function of some sort. Where does that

Re: Not appending ("lib") to sys.path breaks tests.

2017-09-08 Thread Ian Kelly
;s failing to find the lib package. Since you removed >> the "lib" directory from sys.path, does its parent directory exist in >> sys.path? > > > The path is not in the modules path or in sys.path. Hence the append. I > thought I could add the local "lib"

Re: Not appending ("lib") to sys.path breaks tests.

2017-09-08 Thread Leam Hall
sys.path, does its parent directory exist in sys.path? The path is not in the modules path or in sys.path. Hence the append. I thought I could add the local "lib" path via "." or "lib.", but it seems not. import lib.character fails in the tests/ directory. Relative

Re: Not appending ("lib") to sys.path breaks tests.

2017-09-08 Thread Ian Kelly
est session starts > = > platform linux2 -- Python 2.6.6 -- pytest-2.3.5 > collected 0 items / 3 errors > > === ERRORS > ==== > __

Not appending ("lib") to sys.path breaks tests.

2017-09-08 Thread Leam Hall
= test session starts = platform linux2 -- Python 2.6.6 -- pytest-2.3.5 collected 0 items / 3 errors === ERRORS _______

Re: Problem getting unittest tests for existing project working

2017-07-03 Thread Peter Otten
issue I have created for the bug :- > > https://github.com/gdabah/distorm/issues/118 ...though this time it does: diff --git a/examples/tests/test_distorm3.py b/examples/tests/test_distorm3.py index aec1d63..babaacc 100644 --- a/examples/tests/test_distorm3.py +++ b/examples/tests/test_distorm3.p

Problem getting unittest tests for existing project working

2017-07-02 Thread Aaron Gray
I am trying to get distorm3's unittests working but to no avail. I am not really a Python programmer so was hoping someone in the know maybe able to fix this for me. Here's a GitHub issue I have created for the bug :- https://github.com/gdabah/distorm/issues/118 -- Aaron Gray Independent

[ANN] Gajja 0.1: Fake objects for real tests

2016-01-29 Thread Ben Finney
Howdy all, I am pleased to announce the first release of the testing library I've named Gajja https://pypi.python.org/pypi/gajja/>. Its purpose is to allow fine-grained control of not only file content, but metadata and system access behaviour, for in-memory test doubles. Currently it provides c

Re: Stylistic question regarding no-op code and tests

2015-10-15 Thread Jason Swails
hers!) to detect whether > > or not both code paths are covered in the test suite. > > Coverage.py has, for many releases now, had good measurement of branch > coverage by your tests. Enable it with the ‘--branch’ option to ‘run’ > ​Oh, cool. I'm actually using coverage indi

Re: Stylistic question regarding no-op code and tests

2015-10-15 Thread Peter Otten
ion here is that this construct is useful to use when the > two code paths are very different operationally from each other, one is an > unusual path that you are not >100% sure is well-covered in your test > suite, but that your first instinct should be to avoid such code. > &

Re: Stylistic question regarding no-op code and tests

2015-10-14 Thread Ben Finney
e test suite. Coverage.py has, for many releases now, had good measurement of branch coverage by your tests. Enable it with the ‘--branch’ option to ‘run’ https://coverage.readthedocs.org/en/latest/branch.html>. -- \ “They who can give up essential liberty to obtain a little | `\t

Re: Stylistic question regarding no-op code and tests

2015-10-14 Thread Chris Angelico
On Thu, Oct 15, 2015 at 12:49 PM, Jason Swails wrote: > My question is, what do you think of the "else: pass" statement? It is a > complete no-op and is syntactically equivalent to the same code with those > lines removed. Up until earlier today, I would look at that and cringe (I > still do, a

Stylistic question regarding no-op code and tests

2015-10-14 Thread Jason Swails
Hi everyone, I'd like to get some opinions about some coding constructs that may seem at first glance to serve no purpose, but does have *some* non-negligible purpose, and I think I've come to the right place :). The construct is this: def my_function(arg1, arg2, filename=None): """ Some fun

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-29 Thread Rustom Mody
On Friday, August 28, 2015 at 11:56:53 AM UTC+5:30, Steven D'Aprano wrote: > Completely off-topic. Stop reading now if you only want to read things about > Python. > > > On Fri, 28 Aug 2015 09:46 am, Ben Finney wrote: > > > \        “Of course, everybody says they're for peace. Hitler was for |

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread John T. Haggerty
People are naturally competitive. People naturally don't like to hear the word know. People love to get what they want. Combine all of these things together and you have all of the elements necessary to eventually create another conflict. Just because it doesn't happen immediately doesn't mean it's

Re: Linux users: please run gui tests

2015-08-28 Thread Terry Reedy
On 8/28/2015 4:52 AM, Christian Gollwitzer wrote: Here is a small patch which improves the error message a lot: diff -ru Python-3.4.3/Modules/_tkinter.c Python-3.4.3-patched/Modules/_tkinter.c --- Python-3.4.3/Modules/_tkinter.c2015-02-25 12:27:45.0 +0100 +++ Python-3.4.3-patched/Mod

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Michael Torrie
On 08/28/2015 01:27 AM, Ben Finney wrote: > -- > \ “Capitalism is the astounding belief that the most wickedest of | > `\men will do the most wickedest of things for the greatest good | > _o__) of everyone.” —John Maynard Keynes | Now that is an interestin

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Chris Angelico
On Sat, Aug 29, 2015 at 12:02 AM, Steven D'Aprano wrote: > On Fri, 28 Aug 2015 04:35 pm, Nick Sarbicki wrote: > >> Well who would we fight if we were all friends with each other? > > According to the Nac Mac Feegle, there's always *someone* to fight. If not > an enemy, there's always your friends,

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Steven D'Aprano
On Fri, 28 Aug 2015 04:35 pm, Nick Sarbicki wrote: > Well who would we fight if we were all friends with each other? According to the Nac Mac Feegle, there's always *someone* to fight. If not an enemy, there's always your friends, family, inanimate objects, and if all else fails, yourself. "Criv

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread jmp
On 08/28/2015 11:24 AM, Marko Rauhamaa wrote: Would you rather be an powerful, armed war hero admired and feared by your nation or a foresaken unemployed drunkard who rots in jail? Marko Time to quote the most famous general in the galaxy: “Ohhh. Great warrior.Wars not make one great.” ;) J

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Marko Rauhamaa
Ben Finney : > Steven D'Aprano writes: >> Many people over the ages have thought that if only war was more >> terrible, we would stop making it. Alas, that appears to be false: no >> matter how terrible war is, there is always someone who thinks that >> it is better than peace. > > Those who bene

Re: Linux users: please run gui tests

2015-08-28 Thread Christian Gollwitzer
Am 28.08.15 um 08:46 schrieb Terry Reedy: On 8/28/2015 1:56 AM, Christian Gollwitzer wrote: Am 27.08.15 um 20:32 schrieb Terry Reedy: On 8/27/2015 4:56 AM, Petr Viktorin wrote: 1321, in _configure self.tk.call(_flatten((self._w, cmd)) + self._options(cnf)) _tkinter.TclError: expected inte

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Ben Finney
Steven D'Aprano writes: > With the greatest of respect to Chomsky, I think he is simply wrong > about Hitler. Hitler actually believed that war was good for the > national character, and indeed good for the soul, and that long > periods of peace would enfeeble a nation and make it decadent and >

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Martin Skjöldebrand
On Fri, 2015-08-28 at 06:35 +, Nick Sarbicki wrote: > Well who would we fight if we were all friends with each other? That's what Paintball is for. /Martin S -- This address is for technical mail lists only.For all other matters, please use my main addressat the .org domain. -- https://mai

Re: OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-28 Thread Nick Sarbicki
Well who would we fight if we were all friends with each other? On Fri, 28 Aug 2015 07:31 Steven D'Aprano wrote: > Completely off-topic. Stop reading now if you only want to read things > about > Python. > > > On Fri, 28 Aug 2015 09:46 am, Ben Finney wrote: > > > \“Of course, everybody s

Re: Linux users: please run gui tests

2015-08-27 Thread Terry Reedy
On 8/28/2015 1:56 AM, Christian Gollwitzer wrote: Am 27.08.15 um 20:32 schrieb Terry Reedy: On 8/27/2015 4:56 AM, Petr Viktorin wrote: 1321, in _configure self.tk.call(_flatten((self._w, cmd)) + self._options(cnf)) _tkinter.TclError: expected integer but got "" Very puzzling. The only o

OFF-TOPIC Ben's sig monster quote [was Re: Parametrized Unit Tests]

2015-08-27 Thread Steven D'Aprano
Completely off-topic. Stop reading now if you only want to read things about Python. On Fri, 28 Aug 2015 09:46 am, Ben Finney wrote: > \        “Of course, everybody says they're for peace. Hitler was for | > `\      peace. Everybody is for peace. The question is: what kind of | > _o__)        

Re: Linux users: please run gui tests

2015-08-27 Thread Christian Gollwitzer
Am 27.08.15 um 20:32 schrieb Terry Reedy: On 8/27/2015 4:56 AM, Petr Viktorin wrote: 1321, in _configure self.tk.call(_flatten((self._w, cmd)) + self._options(cnf)) _tkinter.TclError: expected integer but got "" Very puzzling. The only obviously even possibly relevant change from 3.4 to

Re: Parametrized Unit Tests

2015-08-27 Thread Ben Finney
rambius writes: > Hello, > > петък, 21 август 2015 г., 21:43:19 UTC-4, Ben Finney написа: > > The ‘testscenarios’ library is one way to have a set of scenarios > > applied at run-time to produce tests across all combinations > > https://pypi.python.org/pypi/testsce

Re: Linux users: please run gui tests

2015-08-27 Thread Terry Reedy
is means 'python3 for the executable. and report here python version, linux system, and result. Alteration of environment and locale is a known issue, skip that. On Fedora 21, the tests pass (Python 3.4.1 and latest dev version). On Fedora 23, I see: $ python3 -V Python 3.4.3 $ python3 -m test

Re: Parametrized Unit Tests

2015-08-27 Thread rambius
pplied at run-time to produce tests across all combinations > https://pypi.python.org/pypi/testscenarios/>. testscenarios worked for me. Thank you for your recommendation. Regards Ivan -- https://mail.python.org/mailman/listinfo/python-list

Re: Linux users: please run gui tests

2015-08-27 Thread Petr Viktorin
idle > (or 3.5). I guess this means 'python3 for the executable. > > and report here python version, linux system, and result. > Alteration of environment and locale is a known issue, skip that. On Fedora 21, the tests pass (Python 3.4.1 and latest dev version). On Fedora 23, I

Re: Parametrized Unit Tests

2015-08-21 Thread Ben Finney
rambius writes: > I am running one and the same unit tests that test some web > application. I would like to execute them against different servers > that may host different instances of the application. Those aren't unit tests, then. A unit test, by definition, tests a smal

Re: Parametrized Unit Tests

2015-08-21 Thread Laura Creighton
In a message of Fri, 21 Aug 2015 08:17:32 -0700, rambius writes: >Although I developed these tests as unit tests they are more of integration >tests. Is there an integration testing framework that supports a more >convenient passing of test parameters / data? > >Thank you in a

Parametrized Unit Tests

2015-08-21 Thread rambius
Hello, I am running one and the same unit tests that test some web application. I would like to execute them against different servers that may host different instances of the application. So far I have something like #!/usr/bin/env python import unittest server = "" user = &

Re: Linux users: please run gui tests

2015-08-13 Thread Terry Reedy
On 8/13/2015 1:11 AM, Laura Creighton wrote: In a message of Wed, 12 Aug 2015 21:49:24 -0400, Terry Reedy writes: https://bugs.python.org/issue15601 Could you add a note to the issue then? Done, though I wonder if it isn't a separate issue. I was not sure. The people currently nosy will

Re: Linux users: please run gui tests

2015-08-12 Thread Laura Creighton
In a message of Wed, 12 Aug 2015 21:49:24 -0400, Terry Reedy writes: >On 8/8/2015 2:40 AM, Laura Creighton wrote: >> In a message of Fri, 07 Aug 2015 21:25:21 -0400, Terry Reedy writes: > > >> https://bugs.python.org/issue15601 >>> was about this very test failure. The failure only occurred with t

Re: Linux users: please run gui tests

2015-08-12 Thread Terry Reedy
On 8/8/2015 2:40 AM, Laura Creighton wrote: In a message of Fri, 07 Aug 2015 21:25:21 -0400, Terry Reedy writes: >> https://bugs.python.org/issue15601 was about this very test failure. The failure only occurred with tk 8.4. What tk version do you have? (Easily found, for instance, in Idle -

Re: Linux users: please run gui tests

2015-08-10 Thread 20/20 Lab
y test_idle [1/3] test_tk [2/3] test_ttk_guionly [3/3] test_idle All 3 tests OK. -- https://mail.python.org/mailman/listinfo/python-list

Re: Linux users: please run gui tests

2015-08-08 Thread Laura Creighton
Tried this on a different debian unstable system. lac@fido:~$ lsb_release -a No LSB modules are available. Distributor ID:Debian Description: Debian GNU/Linux unstable (sid) Release: unstable Codename: sid lac@fido:~$ Same 3 errors. (So it is not just me.) Laura -

Re: Linux users: please run gui tests

2015-08-08 Thread Laura Creighton
Ok, I moved to debian unstable (stretch/sid) lac@smartwheels:~$ lsb_release -a LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd

Re: Linux users: please run gui tests

2015-08-08 Thread Peter Otten
Laura Creighton wrote: >>This leads me to believe that your tests and the tkinter shared library >>may not match. Does >> >>$ python3 -c 'import _tkinter; print(_tkinter)' >>>dynload/_tkinter.cpython-34m-x86_64-linux-gnu.so'> >> >&g

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 21:25:21 -0400, Terry Reedy writes: >was about this very test failure. The failure only occurred with tk >8.4. What tk version do you have? (Easily found, for instance, in Idle >-> Help -> About Idle. (python3 -m idlelib should start idle). > >-- >Terry Jan Re

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
I forgot to mention that I am running OpenBox as a window manager, so if this is a problem with ubuntu Unity, then so far we don't seem to have any Unity users running these tests. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
On 8/7/2015 1:01 PM, Laura Creighton wrote: == FAIL: test_get (tkinter.test.test_tkinter.test_variables.TestBooleanVar) -- Traceback (most recent call last):

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
tk test failed once but passed on retry. Three obscure tk tests failed on another system. On the same system, though, the ttk and (incomplete) idle tests passed. Conclusion: I should not worry about ttk on Linux. Thank you all for helping. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
er/test_variables.py", line 186, in test_set self.assertEqual(self.root.globalgetvar("name"), true) AssertionError: 42 != 1 ------ Ran 660 tests in 3.901s FAILED (failures=3) 1 test failed: test_tk The

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
On 8/6/2015 10:18 PM, Ben Finney wrote: Terry Reedy writes: I would appreciate it if some people could run the linux version of py -3.4 -m test -ugui test_tk test_ttk_guionly test_idle (or 3.5). I guess this means 'python3 for the executable. Could you verify exactly what is the command to

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
On 8/6/2015 11:46 PM, Grant Edwards wrote: In both cases, some small, yellow windows flash briefly on the screen. I should have warned about this ;-). Gui tests mean 'actually flash stuff on screen', which is why they do not get run. -- Terry Jan Reedy -- https://mail.

Re: Linux users: please run gui tests

2015-08-07 Thread David Bolen
x86_64 x86_64 GNU/Linux NOTE: This is a 32-bit userspace system, just with a 64-bit kernel Python 3.6.0a0 (default:e56893df8e76, Aug 7 2015, 16:36:30) [GCC 4.8.4] on linux [1/3] test_tk [2/3] test_ttk_guionly [3/3] test_idle All 3 tests OK. Python 3.5.0b4+ (3.5:b9a0165a3de8, Aug 7 2015, 16:21:51)

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
>test_get (__main__.TestBooleanVar) ... FAIL >test_invalid_value_domain (__main__.TestBooleanVar) ... FAIL >test_set (__main__.TestBooleanVar) ... FAIL >This leads me to believe that your tests and the tkinter shared library may >not match. Does > >$ python3 -c 'import _tkint

Re: Linux users: please run gui tests

2015-08-07 Thread Peter Otten
=== > FAIL: test_set (tkinter.test.test_tkinter.test_variables.TestBooleanVar) > -- > Traceback (most recent call last): > File "/usr/lib/python3.4/tkinter/test/test_tkinter/test_variables

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
y", line 186, in test_set self.assertEqual(self.root.globalgetvar("name"), true) AssertionError: 42 != 1 -- Ran 660 tests in 3.901s FAILED (failures=3) 1 test failed: test_tk -- https://mail.python.org/mailman/listinfo/python-list

Re: Linux users: please run gui tests

2015-08-07 Thread Peter Otten
m test -ugui test_tk test_ttk_guionly > test_idle > [1/3] test_tk > test test_tk failed -- multiple errors occurred; run in verbose mode for > details > [2/3/1] test_ttk_guionly > [3/3/1] test_idle > 2 tests OK. > 1 test failed: > test_tk > > running python3 -v -

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
errors occurred; run in verbose mode for details [2/3/1] test_ttk_guionly [3/3/1] test_idle 2 tests OK. 1 test failed: test_tk running python3 -v -m test -ugui test_tk 2>test_tk.out produces a whole lot of output. I put the file up here. http://www2.openend.se/~lac/test_tk.out But I don'

Re: Linux users: please run gui tests

2015-08-07 Thread Peter Otten
t; cannot run it ;) >>> >>> Install it with >>> >>> $ sudo apt-get install libpython3.4-testsuite >>> >>> and then try again. >> >>Which makes it work fine on my system. >> >>ChrisA > > Not here. > > I'

Re: Linux users: please run gui tests

2015-08-07 Thread Cecil Westerhof
gt;> 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

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
h >> >> $ sudo apt-get install libpython3.4-testsuite >> >> and then try again. > >Which makes it work fine on my system. > >ChrisA Not here. I'm running debian unstable (jessie) I've already got libpython3.4-testsuite installed, and I cannot run

Re: Linux users: please run gui tests

2015-08-07 Thread Cecil Westerhof
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]

Re: Linux users: please run gui tests

2015-08-07 Thread Chris Angelico
On Fri, Aug 7, 2015 at 7:15 PM, Peter Otten <__pete...@web.de> wrote: > 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. Which makes it work fine on my system. ChrisA

Re: Linux users: please run gui tests

2015-08-07 Thread Peter Otten
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

Re: Linux users: please run gui tests

2015-08-07 Thread Peter Otten
tk_guionly test test_ttk_guionly failed -- Traceback (most recent call last): File "/usr/local/lib/python3.5/tkinter/test/test_ttk/test_widgets.py", line 947, in test_tab_identifiers self.fail("Tab with text 'a' not found") AssertionError: Tab with text '

Re: Linux users: please run gui tests

2015-08-07 Thread Cecil Westerhof
nvironment and locale is a known issue, skip that. > > I made a Bash script: > 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. > >

Re: Linux users: please run gui tests

2015-08-07 Thread Cecil Westerhof
st_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

Re: Linux users: please run gui tests

2015-08-07 Thread Mark Lawrence
On 07/08/2015 04:46, Grant Edwards wrote: On 2015-08-07, Grant Edwards wrote: On 2015-08-07, Terry Reedy wrote: Python has an extensive test suite run after each 'batch' of commits on a variety of buildbots. However, the Linux buildbots all (AFAIK) run 'headless', with gui's disabled. Hence

Re: Linux users: please run gui tests

2015-08-06 Thread Chris Angelico
On Fri, Aug 7, 2015 at 12:20 PM, Chris Angelico wrote: > rosuav@sikorsky:~$ uname -a > Linux sikorsky 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 > (2015-04-24) x86_64 GNU/Linux > > The 3.4 is my system Python (Debian Wheezy) Oh, and for what it's worth, I'm running Xfce here. ChrisA -- h

Re: Linux users: please run gui tests

2015-08-06 Thread Grant Edwards
only test_idle > bash: py: command not found > > $ python3 -3.4 -m test -ugui test_tk test_ttk_guionly test_idle > Unknown option: -3 > usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ... > Try `python -h' for more information. Ah, I guess the -3.4 isn'

Re: Linux users: please run gui tests

2015-08-06 Thread Grant Edwards
On 2015-08-07, Terry Reedy wrote: > Python has an extensive test suite run after each 'batch' of commits on > a variety of buildbots. However, the Linux buildbots all (AFAIK) run > 'headless', with gui's disabled. Hence the following > test_tk test_ttk_guionly test_idle > (and on 3.5, test_tix

Re: Linux users: please run gui tests

2015-08-06 Thread Chris Angelico
re a couple of beeps. rosuav@sikorsky:~$ python3 -V Python 3.6.0a0 rosuav@sikorsky:~$ python3 -m test -ugui test_tk test_ttk_guionly test_idle [1/3] test_tk [2/3] test_ttk_guionly [3/3] test_idle All 3 tests OK. rosuav@sikorsky:~$ python3.5 -V Python 3.5.0b1+ rosuav@sikorsky:~$ python3.5 -m test -ugui t

Re: Linux users: please run gui tests

2015-08-06 Thread Ben Finney
Terry Reedy writes: > I would appreciate it if some people could run the linux version of > py -3.4 -m test -ugui test_tk test_ttk_guionly test_idle > (or 3.5). I guess this means 'python3 for the executable. Could you verify exactly what is the command to run? I'd hate for a bunch of commands

Linux users: please run gui tests

2015-08-06 Thread Terry Reedy
Python has an extensive test suite run after each 'batch' of commits on a variety of buildbots. However, the Linux buildbots all (AFAIK) run 'headless', with gui's disabled. Hence the following test_tk test_ttk_guionly test_idle (and on 3.5, test_tix, but not important) are skipped either in w

  1   2   3   4   5   6   >