diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-07-09 09:03:36 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-07-09 09:03:36 +0200 |
commit | 9f7f7386c7fe49b249f6dd8c558266ce65e407dd (patch) | |
tree | caa07112b88c6d6b044bf3172f7907d1bd65cdd9 /tests/conftest.py | |
parent | a45bb607c2d3900b9151fa0bc45d97f7c28e736b (diff) | |
download | immutables-9f7f7386c7fe49b249f6dd8c558266ce65e407dd.tar.gz immutables-9f7f7386c7fe49b249f6dd8c558266ce65e407dd.zip |
New upstream version 0.18debian-upstream
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..9eb9e61 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,13 @@ +# We need the mypy pytest plugin to do the test collection for our +# typing tests. + +# mypy demands that its test-data be present for mypy.test.config to be +# imported, so thwart that check. mypy PR #10919 fixes this. +import unittest.mock +with unittest.mock.patch('os.path.isdir') as isdir: + isdir.return_value = True + import mypy.test.config # noqa + +pytest_plugins = [ + 'mypy.test.data', +] |