1
0
Fork 0

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.
This commit is contained in:
laixintao 2020-10-14 02:47:34 +08:00 committed by GitHub
parent 7626d9a5f2
commit f985e1bdd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,7 @@ python:
- "3.6"
- "3.7"
- "3.8"
- "3.9-dev"
before_install:
- which python

View File

@ -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",

View File

@ -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

View File

@ -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