Skip to content

Commit 9149c93

Browse files
committed
TST: run clipboard tests explicitly
1 parent 847bf59 commit 9149c93

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

doc/source/release.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ Bug Fixes
180180
- Bug in ``nanops.var`` with ``ddof=1`` and 1 elements would sometimes return ``inf``
181181
rather than ``nan`` on some platforms (:issue:`6136`)
182182
- Bug in Series and DataFrame bar plots ignoring the ``use_index`` keyword (:issue:`6209`)
183+
- Disabled clipboard tests until release time (run locally with ``nosetests
184+
-A disabled`` (:issue:`6048`).
183185

184186
pandas 0.13.0
185187
-------------

pandas/io/tests/test_clipboard.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from pandas import read_clipboard
88
from pandas import get_option
99
from pandas.util import testing as tm
10-
from pandas.util.testing import makeCustomDataframe as mkdf
10+
from pandas.util.testing import makeCustomDataframe as mkdf, disabled
1111

1212

1313
try:
@@ -16,6 +16,7 @@
1616
raise nose.SkipTest("no clipboard found")
1717

1818

19+
@disabled
1920
class TestClipboard(tm.TestCase):
2021
@classmethod
2122
def setUpClass(cls):
@@ -37,7 +38,7 @@ def setUpClass(cls):
3738
max_rows = get_option('display.max_rows')
3839
cls.data['longdf'] = mkdf(max_rows+1, 3, data_gen_f=lambda *args: randint(2),
3940
c_idx_type='s', r_idx_type='i',
40-
c_idx_names=[None], r_idx_names=[None])
41+
c_idx_names=[None], r_idx_names=[None])
4142
cls.data_types = list(cls.data.keys())
4243

4344
@classmethod

pandas/util/testing.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ def dec(f):
996996
60, # urllib.error.URLError: [Errno 60] Connection timed out
997997
)
998998

999-
# Both of the above shouldn't mask reasl issues such as 404's
999+
# Both of the above shouldn't mask real issues such as 404's
10001000
# or refused connections (changed DNS).
10011001
# But some tests (test_data yahoo) contact incredibly flakey
10021002
# servers.
@@ -1396,3 +1396,8 @@ def skip_if_no_ne(engine='numexpr'):
13961396
if ne.__version__ < LooseVersion('2.0'):
13971397
raise nose.SkipTest("numexpr version too low: "
13981398
"%s" % ne.__version__)
1399+
1400+
1401+
def disabled(t):
1402+
t.disabled = True
1403+
return t

0 commit comments

Comments
 (0)