sebastien / pywo

Automatically exported from code.google.com/p/pywo
GNU General Public License v3.0
0 stars 0 forks source link

Failing filter tests #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. get revision 175
2. run "python setup.py test"

What is the expected output? What do you see instead?
No tests should fail. The following tests do fail:
test_standard (tests.core.filters_test.CombinedFiltersTests) ... FAIL
test_standard_type (tests.core.filters_test.IncludeExcludeTypeTests) ... FAIL

What version of the product are you using? On what operating system?
Revision 175 on Ubuntu 10.10 using the Lubuntu desktop (Openbox).

Please provide any additional information below.
======================================================================
FAIL: test_standard (tests.core.filters_test.CombinedFiltersTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/core/filters_test.py", line 247, in test_standard
    self.desktop2_viewport2_win])
  File "tests/core/filters_test.py", line 22, in assertWindows
    self.assertEqual(windows_ids, filtered_windows_ids)
AssertionError: set([5025, 2178, 9863, 9360, 4753, 6706, 2931, 3542, 2391, 
2682, 1599, 9663]) != set([2178, 9863, 9360, 4753, 6706, 2931, 3542, 2391, 
2682, 9663, 1599])

======================================================================
FAIL: test_standard_type (tests.core.filters_test.IncludeExcludeTypeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/core/filters_test.py", line 54, in test_standard_type
    self.utility_win, self.dialog_win])
  File "tests/core/filters_test.py", line 22, in assertWindows
    self.assertEqual(windows_ids, filtered_windows_ids)
AssertionError: set([6698, 8893, 9302, 3007]) != set([6698, 8893, 9302])

Original issue reported on code.google.com by akaih...@gmail.com on 27 Apr 2011 at 6:31

GoogleCodeExporter commented 8 years ago
In my GitHub branch for this issue, I made the diffs easier to read by using 
unittest2 if available and including a name for test windows:

https://github.com/akaihola/PyWO/commit/fc6e65d2b07ea6abe5f6a0be87781ee374f98fc8

The failures are now:

======================================================================
FAIL: test_standard_type (__main__.IncludeExcludeTypeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/core/filters_test.py", line 57, in test_standard_type
    self.utility_win, self.dialog_win])
  File "tests/core/filters_test.py", line 25, in assertWindows
    self.assertEqual(windows_ids, filtered_windows_ids)
AssertionError: Items in the first set but not the second:
(9527, 'dock')

======================================================================
FAIL: test_standard (__main__.CombinedFiltersTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/core/filters_test.py", line 256, in test_standard
    self.desktop2_viewport2_win])
  File "tests/core/filters_test.py", line 25, in assertWindows
    self.assertEqual(windows_ids, filtered_windows_ids)
AssertionError: Items in the first set but not the second:
(1248, 'dock')

Original comment by akaih...@gmail.com on 27 Apr 2011 at 6:43

GoogleCodeExporter commented 8 years ago
Thanks for pointing this out! 
Just sent the commit with appopriate changes in test suite.

BTW, got to check unittest2, seems to have some very nice features.

Original comment by kosci...@gmail.com on 27 Apr 2011 at 4:40