def test_issue_175(self):
        """The number of fields returned by server is read in wrong way"""
        conn = self.connect()
        cur = conn.cursor()
        for length in (200, 300):
            columns = ", ".join(f"c{i} integer" for i in range(length))
            sql = f"create table test_field_count ({columns})"
            try:
                cur.execute(sql)
                cur.execute("select * from test_field_count")
                assert len(cur.description) == length
            finally:
                with warnings.catch_warnings():
                    warnings.filterwarnings("ignore")
                    cur.execute("drop table if exists test_field_count")
The number of fields returned by server is read in wrong way
pymysql/tests/test_issues.py