Repository: ClearcodeHQ/pytest-mysql (language: python)

Issue:
Compatibility with pytest 7.0
### What action do you want to perform
I upgraded pytest to 7.0

### What are the results

There's a `ImportError` regarding `TempdirFactory` which was removed in 7.0

```
Traceback (most recent call last):

  ....


  File "/usr/local/lib/python3.9/site-packages/pytest_mysql/plugin.py", line 21, in <module>
    from pytest_mysql import factories
  File "/usr/local/lib/python3.9/site-packages/_pytest/assertion/rewrite.py", line 171, in exec_module
    exec(co, module.__dict__)
  File "/usr/local/lib/python3.9/site-packages/pytest_mysql/factories/__init__.py", line 3, in <module>
    from pytest_mysql.factories.process import mysql_proc
  File "/usr/local/lib/python3.9/site-packages/_pytest/assertion/rewrite.py", line 171, in exec_module
    exec(co, module.__dict__)
  File "/usr/local/lib/python3.9/site-packages/pytest_mysql/factories/process.py", line 25, in <module>
    from _pytest.tmpdir import TempdirFactory
ImportError: cannot import name 'TempdirFactory' from '_pytest.tmpdir' (/usr/local/lib/python3.9/site-packages/_pytest/tmpdir.py)
```

### What are the expected results
No error



Discussion / hints:

Fix patch:
diff --git a/setup.cfg b/setup.cfg
index a4a06c90..24140753 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -35,7 +35,7 @@ packages = find:
 package_dir =
     =src
 install_requires =
-    pytest
+    pytest >= 6.2
     port-for >= 0.6.0
     mirakuru
     mysqlclient


Test patch:
diff --git a/src/pytest_mysql/factories/process.py b/src/pytest_mysql/factories/process.py
index 56270ce9..f25b171f 100644
--- a/src/pytest_mysql/factories/process.py
+++ b/src/pytest_mysql/factories/process.py
@@ -18,11 +18,11 @@
 """Process fixture factory for MySQL database."""
 
 import os
+import py
 from warnings import warn
 
 import pytest
-from _pytest.fixtures import FixtureRequest
-from _pytest.tmpdir import TempdirFactory
+from pytest import FixtureRequest, TempPathFactory
 from port_for import get_port
 
 from pytest_mysql.config import get_config
@@ -64,7 +64,7 @@ def mysql_proc(
 
     @pytest.fixture(scope="session")
     def mysql_proc_fixture(
-        request: FixtureRequest, tmpdir_factory: TempdirFactory
+        request: FixtureRequest, tmp_path_factory: TempPathFactory
     ):
         """
         Process fixture for MySQL server.
@@ -77,7 +77,7 @@ def mysql_proc_fixture(
             `See <https://dev.mysql.com/doc/refman/5.6/en/mysqladmin.html>`_
 
         :param FixtureRequest request: fixture request object
-        :param tmpdir_factory: pytest fixture for temporary directories
+        :param tmp_path_factory: pytest fixture for temporary directories
         :rtype: pytest_dbfixtures.executors.TCPExecutor
         :returns: tcp executor
 
@@ -91,7 +91,9 @@ def mysql_proc_fixture(
         mysql_params = params or config["params"]
         mysql_install_db = install_db or config["install_db"]
 
-        tmpdir = tmpdir_factory.mktemp(f"pytest-mysql-{request.fixturename}")
+        tmpdir = py.path.local(
+            tmp_path_factory.mktemp(f"pytest-mysql-{request.fixturename}")
+        )
 
         if logs_prefix:
             warn(