Skip to content

Commit 7bc7c82

Browse files
committed
TST: added full frame test
1 parent 50d2c13 commit 7bc7c82

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

RELEASE.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ pandas 0.11.1
142142
- Fix not consolidating before to_csv (GH3624_)
143143
- Fix alignment issue when setitem in a DataFrame with a piece of a DataFrame (GH3626_)
144144
- Fix plotting of unordered DatetimeIndex (GH3601_)
145+
- ``sql.write_frame`` failing when writing a single column to sqlite (GH3628_),
146+
thanks to @stonebig
145147

146148
.. _GH3164: https://github.com/pydata/pandas/issues/3164
147149
.. _GH2786: https://github.com/pydata/pandas/issues/2786
@@ -202,6 +204,7 @@ pandas 0.11.1
202204
.. _GH3571: https://github.com/pydata/pandas/issues/3571
203205
.. _GH1651: https://github.com/pydata/pandas/issues/1651
204206
.. _GH3141: https://github.com/pydata/pandas/issues/3141
207+
.. _GH3628: https://github.com/pydata/pandas/issues/3628
205208
.. _GH3638: https://github.com/pydata/pandas/issues/3638
206209

207210
pandas 0.11.0

pandas/io/tests/test_sql.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def test_keyword_as_column_names(self):
221221

222222
def test_onecolumn_of_integer(self):
223223
'''
224+
GH 3628
224225
a column_of_integers dataframe should transfer well to sql
225226
'''
226227
mono_df=DataFrame([1 , 2], columns=['c0'])
@@ -231,6 +232,9 @@ def test_onecolumn_of_integer(self):
231232
# it should not fail, and gives 3 ( Issue #3628 )
232233
self.assertEqual(the_sum , 3)
233234

235+
result = sql.read_frame("select * from mono_df",con_x)
236+
tm.assert_frame_equal(result,mono_df)
237+
234238

235239
class TestMySQL(unittest.TestCase):
236240

0 commit comments

Comments
 (0)