Skip to content

Commit d4a5c90

Browse files
committed
Tests passing: remove debugging
Passed in https://travis-ci.org/pandas-dev/pandas/builds/408474706
1 parent eb7f9b5 commit d4a5c90

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

pandas/io/formats/csvs.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,8 @@ def save(self):
134134
"""
135135
Create the writer & save
136136
"""
137-
138137
# GH 21227 internal compression is not used when file-like passed.
139-
import logging
140-
logging.warning('debug_3: {}'.format(self.compression))
141-
logging.warning('debug_4: {}'.format(self.path_or_buf))
142-
logging.warning(
143-
'debug_5: {}'.format(hasattr(self.path_or_buf, 'write')))
144138
if self.compression and hasattr(self.path_or_buf, 'write'):
145-
logging.warning('debug_6: in loop, should RuntimeWarn')
146139
msg = ("compression has no effect when passing file-like "
147140
"object as input.")
148141
warnings.warn(msg, RuntimeWarning, stacklevel=2)

pandas/tests/test_common.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,8 @@ def test_compression_warning(compression_only):
267267
[12.32112, 123123.2, 321321.2]],
268268
columns=['X', 'Y', 'Z'])
269269
with tm.ensure_clean() as filename:
270-
import logging
271-
logging.warning('debug_1: {}'.format(compression_only))
272270
f, _handles = _get_handle(filename, 'w', compression=compression_only)
273271
with tm.assert_produces_warning(RuntimeWarning,
274272
check_stacklevel=False):
275273
with f:
276-
logging.warning('debug_2: {}'.format(compression_only))
277274
df.to_csv(f, compression=compression_only)

0 commit comments

Comments
 (0)