]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Assorted pre-Black fixes
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 6 Jan 2019 03:42:08 +0000 (22:42 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 6 Jan 2019 04:51:34 +0000 (23:51 -0500)
commit404e69426b05a82d905cbb3ad33adafccddb00dd
tree05e05dc66772923a31842a7fa9869805be879338
parentd229360a8d4071c2f150558897f37e13eb09f430
Assorted pre-Black fixes

Fixes to the test suite, a few errant imports, and setup.py:

- mysql and postgresql have unused 'json' imports; remove
- postgresql is exporting the 'json' symbol, remove
- make sure setup.py can find __version__ using " or '
- retry logic in provision create database for postgresql fixed
- refactor test_magazine to use cls.tables rather than globals
- remove unused class in test_scoping
- add a comment to test_deprecations that this test suite itself
  is deprecated
- don't use mapper() and orm_mapper() in test_unitofwork, just
  use mapper()
- remove dupe test_scalar_set_None test in test_attributes
- Python 2.7 and above includes unittest.SkipTest, remove pre-2.7
  fallback
- use imported SkipTest in profiling
- declarative test_reflection tests with "reflectable_autoincrement"
  already don't run on oracle or firebird; remove conditional logic
  for these, which also removes an "id" symbol
- clean up test in test_functions, remove print statement
- remove dupe test_literal_processor_coercion_native_int_out_of_range
  in test/sql/test_types.py
- fix psycopg2_hstore ref

Change-Id: I7b3444f8546aac82be81cd1e7b6d8b2ad6834fe6
17 files changed:
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/mysql/json.py
lib/sqlalchemy/dialects/postgresql/__init__.py
lib/sqlalchemy/dialects/postgresql/json.py
lib/sqlalchemy/dialects/postgresql/psycopg2.py
lib/sqlalchemy/testing/config.py
lib/sqlalchemy/testing/profiling.py
lib/sqlalchemy/testing/provision.py
setup.py
test/ext/declarative/test_reflection.py
test/orm/inheritance/test_magazine.py
test/orm/test_attributes.py
test/orm/test_deprecations.py
test/orm/test_scoping.py
test/orm/test_unitofwork.py
test/sql/test_functions.py
test/sql/test_types.py