diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-21 18:46:35 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-21 18:46:35 -0500 |
commit | 308233abea250b173492de4b64d1ac7ac0d9d1eb (patch) | |
tree | f2a1877550861d65218ce1820e90d76d11a49a86 /tests/test_offline_environment.py | |
parent | 227f1404a4012c52f75b270f237c6c6bc0579cc3 (diff) | |
download | alembic-308233abea250b173492de4b64d1ac7ac0d9d1eb.tar.gz |
Fixes to Py3k in-place compatibity regarding output encoding and related;
the use of the new io.* package introduced some incompatibilities on Py2k.
These should be resolved, due to the introduction of new adapter types
for translating from io.* to Py2k file types, StringIO types.
Thanks to Javier Santacruz for help with this.
Diffstat (limited to 'tests/test_offline_environment.py')
-rw-r--r-- | tests/test_offline_environment.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/test_offline_environment.py b/tests/test_offline_environment.py index da2589c..7026e8c 100644 --- a/tests/test_offline_environment.py +++ b/tests/test_offline_environment.py @@ -12,7 +12,6 @@ class OfflineEnvironmentTest(TestCase): def setUp(self): env = staging_env() self.cfg = _no_sql_testing_config() - self.cfg.output_buffer = io.StringIO() global a, b, c a, b, c = three_rev_fixture(self.cfg) @@ -43,8 +42,6 @@ assert context.get_starting_revision_argument() == 'x' command.upgrade(self.cfg, a, sql=True) command.downgrade(self.cfg, "%s:%s" % (b, a), sql=True) command.current(self.cfg) - # current seems to close the buffer (?) - self.cfg.output_buffer = io.StringIO() command.stamp(self.cfg, a) def test_starting_rev_pre_context(self): |