Skip to content

TST: run clipboard tests explicitly #6221

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

Merged
merged 1 commit into from
Feb 16, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/source/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ Bug Fixes
- Bug in ``nanops.var`` with ``ddof=1`` and 1 elements would sometimes return ``inf``
rather than ``nan`` on some platforms (:issue:`6136`)
- Bug in Series and DataFrame bar plots ignoring the ``use_index`` keyword (:issue:`6209`)
- Disabled clipboard tests until release time (run locally with ``nosetests
-A disabled`` (:issue:`6048`).

pandas 0.13.0
-------------
Expand Down
5 changes: 3 additions & 2 deletions pandas/io/tests/test_clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pandas import read_clipboard
from pandas import get_option
from pandas.util import testing as tm
from pandas.util.testing import makeCustomDataframe as mkdf
from pandas.util.testing import makeCustomDataframe as mkdf, disabled


try:
Expand All @@ -16,6 +16,7 @@
raise nose.SkipTest("no clipboard found")


@disabled
class TestClipboard(tm.TestCase):
@classmethod
def setUpClass(cls):
Expand All @@ -37,7 +38,7 @@ def setUpClass(cls):
max_rows = get_option('display.max_rows')
cls.data['longdf'] = mkdf(max_rows+1, 3, data_gen_f=lambda *args: randint(2),
c_idx_type='s', r_idx_type='i',
c_idx_names=[None], r_idx_names=[None])
c_idx_names=[None], r_idx_names=[None])
cls.data_types = list(cls.data.keys())

@classmethod
Expand Down
7 changes: 6 additions & 1 deletion pandas/util/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ def dec(f):
60, # urllib.error.URLError: [Errno 60] Connection timed out
)

# Both of the above shouldn't mask reasl issues such as 404's
# Both of the above shouldn't mask real issues such as 404's
# or refused connections (changed DNS).
# But some tests (test_data yahoo) contact incredibly flakey
# servers.
Expand Down Expand Up @@ -1396,3 +1396,8 @@ def skip_if_no_ne(engine='numexpr'):
if ne.__version__ < LooseVersion('2.0'):
raise nose.SkipTest("numexpr version too low: "
"%s" % ne.__version__)


def disabled(t):
t.disabled = True
return t