tests: make the testsuite Python 3.7 compatible

In Python 3.7, the re module changes the name of its _pattern_type
attribute to "Pattern", this patch handles both versions
8 jobs for ph/fuse-switch-handle-yycase in 169 minutes and 18 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Test
failed #58817
archlinux:clang:debug

02:10:04

failed #58818
archlinux:gcc:speed

02:49:18

passed #58819
debian:clang:speed

02:14:31

passed #58820
debian:gcc:debug

02:00:37

canceled #58553
archlinux:clang:debug

00:01:03

canceled #58552
archlinux:gcc:speed

00:01:03

canceled #58555
debian:clang:speed

00:01:02

canceled #58554
debian:gcc:debug

00:01:02

 
Name Stage Failure
failed
archlinux:gcc:speed Test
make[1]: *** [Makefile:4385: check-am] Error 2
make[1]: Leaving directory '/builds/vcsn/vcsn/build'
make: *** [Makefile:4388: check] Error 2
Uploading artifacts...
build/*.log: found 1 matching files
build/*/*.log: found 1 matching files

build/*/*/*.log: found 300 matching files

Uploading artifacts to coordinator... ok
id=58818 responseStatus=201 Created token=_spvAmMm
ERROR: Job failed: exit code 1
failed
archlinux:clang:debug Test
make[1]: *** [Makefile:4388: check] Error 2
make[1]: Leaving directory '/builds/vcsn/vcsn/build'
make: *** [Makefile:5183: installcheck-local] Error 2
Uploading artifacts...
build/*.log: found 1 matching files
build/*/*.log: found 1 matching files

build/*/*/*.log: found 300 matching files

Uploading artifacts to coordinator... ok
id=58817 responseStatus=201 Created token=mPW7uMao
ERROR: Job failed: exit code 1