Changeset 10349 for main


Ignore:
Timestamp:
22 Jun 2013, 21:36:00 (11 years ago)
Author:
uli
Message:

Use fetchall instead manually creating lists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.cas/trunk/waeup/cas/tests/test_db.py

    r10344 r10349  
    3838        conn = sqlite3.connect(db_path)
    3939        cursor = conn.cursor()
    40         result = cursor.execute('''SELECT * FROM mytest''')
    41         assert list(result) == [('Foo', 'Bar')]
     40        cursor.execute('''SELECT * FROM mytest''')
     41        assert cursor.fetchall() == [('Foo', 'Bar')]
Note: See TracChangeset for help on using the changeset viewer.