summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlaixintao <laixintaoo@gmail.com>2020-10-14 02:47:34 +0800
committerGitHub <noreply@github.com>2020-10-13 11:47:34 -0700
commitf985e1bdd82fc3c54a8232487a1b410159acc12b (patch)
tree9f6c9d07db2ceab158abd7aee7cab9c2690e4db9
parent7626d9a5f27a221d87f31dcb5bb8fc12024f6c58 (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.yml1
-rw-r--r--setup.py1
-rw-r--r--tests/features/steps/basic_commands.py2
-rw-r--r--tox.ini2
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
diff --git a/setup.py b/setup.py
index 4e0696fd..6495a51d 100644
--- a/setup.py
+++ b/setup.py
@@ -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
diff --git a/tox.ini b/tox.ini
index c71025ff..c2d4239b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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