Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent failure in CI (traits.tests.test_regression) #1282

Closed
rahulporuri opened this issue Aug 26, 2020 · 3 comments · Fixed by #1290
Closed

Intermittent failure in CI (traits.tests.test_regression) #1282

rahulporuri opened this issue Aug 26, 2020 · 3 comments · Fixed by #1290
Labels
component: test suite Issues related directly to the test suite type: bug

Comments

@rahulporuri
Copy link
Contributor

Observed in a CI run in the PR #1281

[00:01:59] ======================================================================
[00:01:59] FAIL: test_subclasses_weakref (traits.tests.test_regression.TestRegression)
[00:01:59] Make sure that dynamically created subclasses are not held
[00:01:59] ----------------------------------------------------------------------
[00:01:59] Traceback (most recent call last):
[00:01:59]   File "C:\Python35\lib\site-packages\traits\tests\test_regression.py", line 175, in test_subclasses_weakref
[00:01:59]     self.assertEqual(previous_subclasses, HasTraits.__subclasses__())
[00:01:59] AssertionError: Lists differ: [<class 'traits.tests.test_enum.ExampleModel'>, <class 't[14506 chars]ts'>] != [<class 'traits.util.tests.test_record_events.TestObject'[14506 chars]ex'>]
[00:01:59] 
[00:01:59] First differing element 0:
[00:01:59] <class 'traits.tests.test_enum.ExampleModel'>
[00:01:59] <class 'traits.util.tests.test_record_events.TestObject'>
[00:01:59] 
[00:01:59] Diff is 28478 characters long. Set self.maxDiff to None to see it.
[00:01:59] 
[00:01:59] ----------------------------------------------------------------------
[00:01:59] Ran 1416 tests in 37.356s
[00:01:59] 
[00:01:59] FAILED (failures=1, skipped=7)
[00:01:59] Command exited with code 1

See full log here - log.txt

@mdickinson
Copy link
Member

Note that this was a Python 3.5 run, and may simply be an ordering problem that's gone in Python >= 3.6.

@mdickinson mdickinson added component: test suite Issues related directly to the test suite type: bug labels Aug 27, 2020
@mdickinson
Copy link
Member

See again on Windows / Python 3.5 in an Appveyor run:

======================================================================
FAIL: test_subclasses_weakref (traits.tests.test_regression.TestRegression)
Make sure that dynamically created subclasses are not held
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python35\lib\site-packages\traits\tests\test_regression.py", line 175, in test_subclasses_weakref
    self.assertEqual(previous_subclasses, HasTraits.__subclasses__())
AssertionError: Lists differ: [<cla[17 chars]test_weak_ref.Eggs'>, <class 'traits.tests.tes[14495 chars]re'>] != [<cla[17 chars]test_observe.ClassWithListOfInstance'>, <class[14495 chars]ld'>]
First differing element 0:
<class 'traits.tests.test_weak_ref.Eggs'>
<class 'traits.tests.test_observe.ClassWithListOfInstance'>
Diff is 28928 characters long. Set self.maxDiff to None to see it.

@mdickinson
Copy link
Member

Seen again in a Python 3.5 / Windows CI run for PR #1272.

Run link (not likely to persist for long): https://ci.appveyor.com/project/EnthoughtOSS/traits/builds/35050317/job/0osvtsxe9rrk47gg

Relevant piece:

======================================================================
FAIL: test_subclasses_weakref (traits.tests.test_regression.TestRegression)
Make sure that dynamically created subclasses are not held
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python35\lib\site-packages\traits\tests\test_regression.py", line 175, in test_subclasses_weakref
    self.assertEqual(previous_subclasses, HasTraits.__subclasses__())
AssertionError: Lists differ: [<cla[18 chars]est_callable.MyCallable'>, <class 'traits.obse[14494 chars]st'>] != [<cla[18 chars]est_clone.ClassWithClassAttribute'>, <class 't[14494 chars]st'>]
First differing element 0:
<class 'traits.tests.test_callable.MyCallable'>
<class 'traits.tests.test_clone.ClassWithClassAttribute'>
Diff is 28440 characters long. Set self.maxDiff to None to see it.
----------------------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: test suite Issues related directly to the test suite type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants