diff options
author | laixintao <laixintaoo@gmail.com> | 2020-10-14 02:47:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 11:47:34 -0700 |
commit | f985e1bdd82fc3c54a8232487a1b410159acc12b (patch) | |
tree | 9f6c9d07db2ceab158abd7aee7cab9c2690e4db9 | |
parent | 7626d9a5f27a221d87f31dcb5bb8fc12024f6c58 (diff) |
test: test pgcli on python3.9 (#1214)
* test: test pgcli on python3.9
* test on 3.9
* use 3.9-dev version from travis.
* try to fix pexpect EOF.
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | setup.py | 1 | ||||
-rw-r--r-- | tests/features/steps/basic_commands.py | 2 | ||||
-rw-r--r-- | tox.ini | 2 |
4 files changed, 4 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 5f50abac..8d50fbd1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ python: - "3.6" - "3.7" - "3.8" + - "3.9-dev" before_install: - which python @@ -54,6 +54,7 @@ setup( "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", "Programming Language :: SQL", "Topic :: Database", "Topic :: Database :: Front-Ends", diff --git a/tests/features/steps/basic_commands.py b/tests/features/steps/basic_commands.py index 52e432a6..10696621 100644 --- a/tests/features/steps/basic_commands.py +++ b/tests/features/steps/basic_commands.py @@ -68,7 +68,7 @@ def step_ctrl_d(context): context.cli.sendline("\pset pager off") wrappers.wait_prompt(context) context.cli.sendcontrol("d") - context.cli.expect_exact(pexpect.EOF, timeout=15) + context.cli.expect(pexpect.EOF, timeout=15) context.exit_sent = True @@ -1,5 +1,5 @@ [tox] -envlist = py36, py37, py38 +envlist = py36, py37, py38, py39 [testenv] deps = pytest>=2.7.0,<=3.0.7 mock>=1.0.1 |