diff options
| author | xtreak <tir.karthi@gmail.com> | 2018-09-24 12:23:54 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-09-27 15:49:18 -0400 |
| commit | 2d2fa49130249f757f6f1100dad879e1071ad385 (patch) | |
| tree | abf7440b5a8937fd57f7e13e0d499b8735c6c1ed /test/sql/test_resultset.py | |
| parent | fb991a4474fa0d4df69af10a808fe234016c6a52 (diff) | |
| download | sqlalchemy-2d2fa49130249f757f6f1100dad879e1071ad385.tar.gz | |
Import from collections.abc
Fixed additional warnings generated by Python 3.7 due to changes in the
organization of the Python ``collections`` and ``collections.abc`` packages.
Previous ``collections`` warnings were fixed in version 1.2.11. Pull request
courtesy xtreak.
See I2d1c0ef97c8ecac7af152cc56263422a40faa6bb for the original collections.abc
fixes.
Fixes: #4339
Change-Id: Ia92d2461f20309fb33ea6c6f592f7d4e7e32ae7a
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/475
Diffstat (limited to 'test/sql/test_resultset.py')
| -rw-r--r-- | test/sql/test_resultset.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sql/test_resultset.py b/test/sql/test_resultset.py index 5c7108ca0..8e6279708 100644 --- a/test/sql/test_resultset.py +++ b/test/sql/test_resultset.py @@ -1062,13 +1062,13 @@ class ResultProxyTest(fixtures.TablesTest): eq_(len(mock_rowcount.__get__.mock_calls), 2) def test_rowproxy_is_sequence(self): - import collections + from sqlalchemy.util import collections_abc from sqlalchemy.engine import RowProxy row = RowProxy( object(), ['value'], [None], {'key': (None, None, 0), 0: (None, None, 0)}) - assert isinstance(row, collections.Sequence) + assert isinstance(row, collections_abc.Sequence) @testing.provide_metadata def test_rowproxy_getitem_indexes_compiled(self): |
