Repository: scrapy/scrapy
Pull request: Support Python 3.9 
Resolves #4757

Problem statement:
Add a job for Python 3.9 to .travis.yml
It looks like Travis support specifying such a Python version as `3.9-dev`.

While I’m not sure we should officially support Python 3.9 it until its release, running tests on it will allow us to catch any issue early.

Hints from issue discussion:
#4759 @Gallaecio, please review and some testcases are failing, can you please help

thank you,
@itsvinayak

Commit message: updage travis.yml

Patch to review:
diff --git a/.travis.yml b/.travis.yml
index b883c5b78d3..40ffdb11004 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,16 +7,24 @@ branches:
     - /^\d\.\d+\.\d+(rc\d+|\.dev\d+)?$/
 matrix:
   include:
+    - env: TOXENV=py 
+      python: 3.9-dev
+      dist: bionic
+    - env: TOXENV=extra-deps
+      python: 3.9-dev
+      dist: bionic
+    - env: TOXENV=asyncio
+      python: 3.9-dev
+      dist: bionic
     - env: TOXENV=security
-      python: 3.8
+      python: 3.9-dev
     - env: TOXENV=flake8
-      python: 3.8
-    - env: TOXENV=pylint
-      python: 3.8
+      python: 3.9-dev
+    - env: TOXENV=typing
+      python: 3.9-dev
+      
     - env: TOXENV=docs
       python: 3.7  # Keep in sync with .readthedocs.yml
-    - env: TOXENV=typing
-      python: 3.8
 
     - env: TOXENV=pinned
       python: 3.6.1
@@ -30,16 +38,10 @@ matrix:
 
     - env: TOXENV=py
       python: 3.7
-
     - env: TOXENV=py PYPI_RELEASE_JOB=true
       python: 3.8
       dist: bionic
-    - env: TOXENV=extra-deps
-      python: 3.8
-      dist: bionic
-    - env: TOXENV=asyncio
-      python: 3.8
-      dist: bionic
+
 install:
   - |
       if [[ ! -z "$PYPY_VERSION" ]]; then


Code review comments:
diff_hunk: @@ -7,16 +7,24 @@ branches:
     - /^\d\.\d+\.\d+(rc\d+|\.dev\d+)?$/
 matrix:
   include:
+    - env: TOXENV=py 
+      python: 3.9-dev
+      dist: bionic
+    - env: TOXENV=extra-deps
+      python: 3.9-dev
+      dist: bionic
+    - env: TOXENV=asyncio
+      python: 3.9-dev
+      dist: bionic
     - env: TOXENV=security
-      python: 3.8
+      python: 3.9-dev
     - env: TOXENV=flake8
-      python: 3.8
-    - env: TOXENV=pylint
-      python: 3.8
+      python: 3.9-dev
+    - env: TOXENV=typing
+      python: 3.9-dev
path: .travis.yml
text: @user1:
Oops, it looks like you accidentally removed the `pylint` job. Please restore it.