Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #95138

Re: Linux users: please run gui tests

Path csiph.com!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'cpython': 0.05; 'python3': 0.05; 'skip:" 60': 0.05; 'true)': 0.07; 'unittest': 0.07; 'creighton': 0.09; 'failed:': 0.09; 'false)': 0.09; 'grep': 0.09; 'namespace': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'run_unittest': 0.09; 'skip:= 70': 0.10; 'output': 0.13; "'0'": 0.16; 'failures,': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'subject:gui': 0.16; 'subject:run': 0.16; 'url:py': 0.16; 'verbose=0,': 0.16; 'wrote:': 0.16; 'laura': 0.18; 'test.': 0.18; 'tests': 0.18; 'library': 0.20; '2015': 0.20; 'aug': 0.20; 'skip:" 40': 0.20; 'machine': 0.21; 'tkinter': 0.22; 'errors': 0.23; '(most': 0.24; 'url:bugs': 0.24; 'testing': 0.25; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; 'linux': 0.26; 'rest': 0.26; 'skip:" 20': 0.26; 'fri,': 0.27; '+0200,': 0.27; 'skip:( 20': 0.28; 'follows': 0.29; 'hash': 0.29; 'occurred': 0.29; 'skip:( 50': 0.29; 'subject:users': 0.29; 'raise': 0.29; 'that.': 0.30; 'skip:_ 10': 0.32; 'run': 0.33; 'url:python': 0.33; 'raised': 0.33; 'skip:/ 20': 0.33; 'traceback': 0.33; 'similar': 0.33; 'file': 0.34; 'skip:d 20': 0.34; 'fail': 0.35; 'false': 0.35; 'subject:please': 0.35; 'something': 0.35; 'too': 0.36; 'skip:i 20': 0.36; 'there': 0.36; 'url:org': 0.36; 'lines': 0.36; 'possible': 0.36; 'framework': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'skip:s 40': 0.38; 'thank': 0.38; 'shared': 0.38; 'test': 0.39; 'does': 0.39; "didn't": 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'received:de': 0.40; 'your': 0.60; 'show': 0.62; 'skip:n 10': 0.62; 'you.': 0.64; 'believe': 0.66; 'jul': 0.72; '196,': 0.84; 'otten': 0.84; 'url:cpython': 0.84; 'url:rev': 0.84; 'url:tkinter': 0.84; '212,': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Peter Otten <__peter__@web.de>
Subject Re: Linux users: please run gui tests
Date Fri, 07 Aug 2015 21:13:02 +0200
Organization None
References <mailman.1287.1438913259.3674.python-list@python.org> <87wpx7fsb9.fsf@Equus.decebal.nl> <87si7vfqwn.fsf@Equus.decebal.nl> <mq1svm$eck$1@ger.gmane.org> <CAPTjJmoozQ26245nN7qEcz-kW7g_OtL3zgQOtQeH2ku1+eznJQ@mail.gmail.com> <201508071238.t77CcY7n018432@fido.openend.se> <mq2ah2$95g$1@ger.gmane.org> <201508071346.t77DkL2t031696@fido.openend.se> <mq2j70$tri$1@ger.gmane.org> <201508071701.t77H1Csn004579@fido.openend.se>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Gmane-NNTP-Posting-Host p57bd93d8.dip0.t-ipconnect.de
User-Agent KNode/4.13.3
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1313.1438974795.3674.python-list@python.org> (permalink)
Lines 146
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1438974795 news.xs4all.nl 2915 [2001:888:2000:d::a6]:42850
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:95138

Show key headers only | View raw


Laura Creighton wrote:

> In a message of Fri, 07 Aug 2015 17:34:54 +0200, Peter Otten writes:
>>Run
>>
>>$ python3 -m test -ugui -v test_tk
>>
>>(That way the unittest framework will see the -v option)
> 
> Aha, I didn't understand that.  Thank you.
> 
>>Note that there are lines like
>>
>># possible namespace for /home/lac/src/accounting/test
>>
>>in your python3 -v output that indicate that there may still be too much
>>in your PYTHONPATH.
> 
> It's now "" for this test.
> 
> I get 3 failures, as follows (I trimmed the rest of the ok ones).
> 
> = CPython 3.4.3+ (default, Jul 28 2015, 13:17:50) [GCC 4.9.3]
> ==   Linux-3.16.0-4-amd64-x86_64-with-debian-stretch-sid little-endian
> ==   hash algorithm: siphash24 64bit
> ==   /tmp/test_python_7974
> Testing with flags: sys.flags(debug=0, inspect=0, interactive=0,
> optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0,
> ignore_environment=0, verbose=0, bytes_warning=0, quiet=0,
> hash_randomization=1, isolated=0)
> 
> test_default (tkinter.test.test_tkinter.test_variables.TestBooleanVar) ...
> FAIL test_get (tkinter.test.test_tkinter.test_variables.TestBooleanVar)
> ... FAIL test_set
> (tkinter.test.test_tkinter.test_variables.TestBooleanVar) ... FAIL
> 
> ======================================================================
> FAIL: test_default
> (tkinter.test.test_tkinter.test_variables.TestBooleanVar)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3.4/tkinter/test/test_tkinter/test_variables.py",
>   line 163, in test_default
>       self.assertIs(v.get(), False)
>       AssertionError: 0 is not False
> 
> ======================================================================
> FAIL: test_get (tkinter.test.test_tkinter.test_variables.TestBooleanVar)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3.4/tkinter/test/test_tkinter/test_variables.py",
>   line 167, in test_get
>       self.assertIs(v.get(), True)
>       AssertionError: 1 is not True
> 
> ======================================================================
> 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.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

test_set() was introduced in a bugfix

http://bugs.python.org/issue15133
https://hg.python.org/cpython/rev/117f45749359/

that I don't have on my machine (up-to-date Linux Mint 17).  When I download

https://hg.python.org/cpython/file/117f45749359/Lib/tkinter/test/test_tkinter/test_variables.py

and manually run that file I get errors similar to those you are reporting:

$ python3 test_variables.py | grep -v ok$
test_default (__main__.TestBooleanVar) ... FAIL
test_get (__main__.TestBooleanVar) ... FAIL
test_invalid_value_domain (__main__.TestBooleanVar) ... FAIL
test_set (__main__.TestBooleanVar) ... FAIL

======================================================================
FAIL: test_default (__main__.TestBooleanVar)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_variables.py", line 163, in test_default
    self.assertIs(v.get(), False)
AssertionError: 0 is not False

======================================================================
FAIL: test_get (__main__.TestBooleanVar)
Traceback (most recent call last):
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_variables.py", line 167, in test_get
    self.assertIs(v.get(), True)
AssertionError: 1 is not True

======================================================================
  File "test_variables.py", line 212, in <module>
FAIL: test_invalid_value_domain (__main__.TestBooleanVar)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_variables.py", line 196, in test_invalid_value_domain
    v.set("value")
AssertionError: TclError not raised

======================================================================
FAIL: test_set (__main__.TestBooleanVar)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_variables.py", line 184, in test_set
    self.assertEqual(self.root.globalgetvar("name"), false)
AssertionError: '0' != 0

----------------------------------------------------------------------
Ran 22 tests in 0.098s

FAILED (failures=4)
    run_unittest(*tests_gui)
  File "/usr/lib/python3.4/test/support/__init__.py", line 1719, in 
run_unittest
    _run_suite(suite)
  File "/usr/lib/python3.4/test/support/__init__.py", line 1694, in 
_run_suite
    raise TestFailed(err)
test.support.TestFailed: multiple errors occurred
$ 

This leads me to believe that your tests and the tkinter shared library may 
not match. Does

$ python3 -c 'import _tkinter; print(_tkinter)'
<module '_tkinter' from '/usr/lib/python3.4/lib-
dynload/_tkinter.cpython-34m-x86_64-linux-gnu.so'>

show something suspicious?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Linux users: please run gui tests Terry Reedy <tjreedy@udel.edu> - 2015-08-06 22:07 -0400
  Re: Linux users: please run gui tests Grant Edwards <invalid@invalid.invalid> - 2015-08-07 03:43 +0000
    Re: Linux users: please run gui tests Grant Edwards <invalid@invalid.invalid> - 2015-08-07 03:46 +0000
      Re: Linux users: please run gui tests Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-08-07 08:08 +0100
      Re: Linux users: please run gui tests Terry Reedy <tjreedy@udel.edu> - 2015-08-07 20:40 -0400
  Re: Linux users: please run gui tests Cecil Westerhof <Cecil@decebal.nl> - 2015-08-07 09:53 +0200
    Re: Linux users: please run gui tests Cecil Westerhof <Cecil@decebal.nl> - 2015-08-07 10:23 +0200
      Re: Linux users: please run gui tests Peter Otten <__peter__@web.de> - 2015-08-07 11:15 +0200
        Re: Linux users: please run gui tests Cecil Westerhof <Cecil@decebal.nl> - 2015-08-07 12:59 +0200
          Re: Linux users: please run gui tests Cecil Westerhof <Cecil@decebal.nl> - 2015-08-07 14:36 +0200
      Re: Linux users: please run gui tests Chris Angelico <rosuav@gmail.com> - 2015-08-07 19:51 +1000
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-07 14:38 +0200
      Re: Linux users: please run gui tests Peter Otten <__peter__@web.de> - 2015-08-07 15:06 +0200
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-07 15:46 +0200
      Re: Linux users: please run gui tests Peter Otten <__peter__@web.de> - 2015-08-07 17:34 +0200
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-07 19:01 +0200
      Re: Linux users: please run gui tests Peter Otten <__peter__@web.de> - 2015-08-07 21:13 +0200
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-07 22:35 +0200
      Re: Linux users: please run gui tests Terry Reedy <tjreedy@udel.edu> - 2015-08-07 21:04 -0400
      Re: Linux users: please run gui tests Terry Reedy <tjreedy@udel.edu> - 2015-08-07 21:25 -0400
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-08 08:35 +0200
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-08 08:40 +0200
      Re: Linux users: please run gui tests Peter Otten <__peter__@web.de> - 2015-08-08 09:53 +0200
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-08 17:41 +0200
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-08 19:20 +0200
      Re: Linux users: please run gui tests Terry Reedy <tjreedy@udel.edu> - 2015-08-12 21:49 -0400
      Re: Linux users: please run gui tests Laura Creighton <lac@openend.se> - 2015-08-13 07:11 +0200
      Re: Linux users: please run gui tests Terry Reedy <tjreedy@udel.edu> - 2015-08-13 07:55 -0400
  Re: Linux users: please run gui tests David Bolen <db3l.net@gmail.com> - 2015-08-07 16:53 -0400

csiph-web