[Sqlalchemy-tickets] [sqlalchemy] #2830: Warnings in test suite
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-09-24 05:47:42
|
#2830: Warnings in test suite
----------------------+---------------------------------------
Reporter: Arfrever | Owner: zzzeek
Type: defect | Status: new
Priority: low | Milestone:
Component: tests | Severity: minor - half an hour
Keywords: | Progress State: awaiting triage
----------------------+---------------------------------------
When warnings are enabled (using e.g. PYTHONWARNINGS="d" environmental
variable), then test suite of SQLAlchemy triggers 2 DeprecationWarnings
and 2 ResourceWarnings.
Results for SQLAlchemy trunk:
{{{
$ python3.3 -Wd sqla_nose.py
sqla_nose.py:21: DeprecationWarning: imp.load_source() is deprecated; use
importlib.machinery.SourceFileLoader(name, pathname).load_module() instead
noseplugin = imp.load_source("noseplugin", path)
.SSSSSSS.......S.......SS.SSS...........SS..........................................................................................................................................................................................S.............SSSS..........SSSS........S.......................SSSS.SS.S.S.S.S..SS...............................SSSSSSS..SSSSSSSSS.............................SSSSS.SSSS......S.......SSS..SSS..................SS.......SSSSSSS.SSSS.................................................../tmp/sqlalchemy/./lib/sqlalchemy/testing/engines.py:37:
UserWarning: testing_reaper couldn't rollback/close connection: Cannot
operate on a closed database.
"rollback/close connection: %s" % e)
.........S.SS.S.S.SS..SSS.S.S.S.S............S..S...................S...S...........................................................................S..........S.....................................S...S../tmp/sqlalchemy/test/engine/test_parseconnect.py:108:
DeprecationWarning: This method will be removed in future versions. Use
'parser.read_file()' instead.
ini.readfp(StringIO(raw))
................................................................................SS.................................SS.....SS..................................................S.SSSSS....SSSS..................SS.......S.S....SS.SS....S.SS.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
.................................................................................................................................................................................................................................................................................................................................................................................................Error
emptying table d: OperationalError('(OperationalError) no such table: d',)
Error emptying table c: OperationalError('(OperationalError) no such
table: c',)
Error emptying table b: OperationalError('(OperationalError) no such
table: b',)
Error emptying table a: OperationalError('(OperationalError) no such
table: a',)
.Error emptying table d: OperationalError('(OperationalError) no such
table: d',)
Error emptying table c: OperationalError('(OperationalError) no such
table: c',)
Error emptying table b: OperationalError('(OperationalError) no such
table: b',)
Error emptying table a: OperationalError('(OperationalError) no such
table: a',)
.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S...........................................................................................................................................................................................................................................................................................................................................................................................
.......................................................................................................................................................................................................................................................................S.......S..S.SSS.S..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S................................S..S.....................S...................................................................................SSS.S.........SSSSSSSS......SSSSSSS........SS...SS...............S.............................S....
.................................................SS.S...................................................................................................S..............................................................................................................................................................................................................................S...SS...S.S...S....SS......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S......S..................................
.........S.....................SS.....S...........................................S..SSSS......................................................................................................................................S......................./tmp/sqlalchemy/test/sql/test_types.py:978:
ResourceWarning: unclosed file <_io.BufferedReader
name='/tmp/sqlalchemy/test/sql/../binary_data_one.dat'>
return open(f, mode='rb').read()
/tmp/sqlalchemy/test/sql/test_types.py:978: ResourceWarning: unclosed file
<_io.BufferedReader
name='/tmp/sqlalchemy/test/sql/../binary_data_two.dat'>
return open(f, mode='rb').read()
..............................................................................SSSSSS...............
----------------------------------------------------------------------
Ran 5323 tests in 455.797s
OK (SKIP=198)
}}}
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2830>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|