[New-bugs-announce] [issue20080] Unused variable in Lib/sqlite3/test/factory.py

Vajrasky Kok report at bugs.python.org
Fri Dec 27 11:56:02 CET 2013


New submission from Vajrasky Kok:

There is unused variable t in Lib/sqlite3/test/factory.py.

    def CheckSqliteRowAsTuple(self):
        """Checks if the row object can be converted to a tuple"""
        self.con.row_factory = sqlite.Row
        row = self.con.execute("select 1 as a, 2 as b").fetchone()
        t = tuple(row)

    def CheckSqliteRowAsDict(self):

Attached the patch to give the purpose to variable t.

----------
components: Tests
files: unused_variable_in_factory_py.patch
keywords: patch
messages: 206990
nosy: vajrasky
priority: normal
severity: normal
status: open
title: Unused variable in Lib/sqlite3/test/factory.py
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file33279/unused_variable_in_factory_py.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20080>
_______________________________________


More information about the New-bugs-announce mailing list