Skip to content

Unreliable test test_clipboard:test_round_trip_frame #6048

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

Closed
ghost opened this issue Jan 23, 2014 · 5 comments
Closed

Unreliable test test_clipboard:test_round_trip_frame #6048

ghost opened this issue Jan 23, 2014 · 5 comments
Labels
Testing pandas testing functions or related to the test suite
Milestone

Comments

@ghost
Copy link

ghost commented Jan 23, 2014

=============================================================================
FAILURE: test_round_trip_frame (pandas.io.tests.test_clipboard.TestClipboard)
-----------------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\Python33-AMD64\Lib\unittest\case.py", line 384, in _executeTestPart
    function()
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\33\pandas\io\tests\test_clipboard.py", line 67, in test_round_trip_frame
    self.check_round_trip_frame(dt)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\33\pandas\io\tests\test_clipboard.py", line 55, in check_round_trip_frame
    tm.assert_frame_equal(data, result, check_dtype=False)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\33\pandas\util\testing.py", line 477, in assert_frame_equal
    assert_index_equal(left.columns, right.columns)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\33\pandas\util\testing.py", line 423, in assert_index_equal
    right.dtype))
AssertionError: [index] left [object Index(['TeN9hs1zZI', 'gvGSK2jSbR', 'AvE1VqQppQ'], dtype='object')], right [Index(['Y3XElgd5QX', 'Xp1Xv4NQF2', 'SoKJHMsx3C'], dtype='object') object]

Many of the spurious failures on the CI status page come from this test
sporadically failing on windows.

Figure out if it's a real issue or not.

@cpcloud
Copy link
Member

cpcloud commented Jan 23, 2014

I'll take this ... I think I wrote that test

@ghost ghost assigned cpcloud Jan 23, 2014
@ghost
Copy link
Author

ghost commented Jan 27, 2014

related #5895, #4778 (comment), #4396.

This test is a major offender, we need to disable it. I thought it might be caused by me RDPing
into the box and using the clipboard during tests (unlikely but possible), but now that I think of
it it's clear the test is inherently racy. If you run multiple CI jobs on the same
box they will ocassionally step on each other's toes. The clipboard is a shared global resource.

@jreback
Copy link
Contributor

jreback commented Jan 27, 2014

how about a decorator that is only run on demand with nose (so done only manually). Cn do it as part of the release cycle.

@cpcloud
Copy link
Member

cpcloud commented Jan 27, 2014

I suppose a lock would be overkill...decorator sounds good ... just have to remember to actually use it :)

@jreback
Copy link
Contributor

jreback commented Jan 27, 2014

yep...but at least they will generally run locally by default (unless you exclude them )

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

No branches or pull requests

2 participants