pytest2/testing
Ran Benita 9dc54f79b0 tmpdir: fix temporary directories created with world-readable permissions
(Written for a Unix system, but might be applicable to Windows as well).

pytest creates a root temporary directory under /tmp, named
`pytest-of-<username>`, and creates tmp_path's and other under it.
/tmp is shared between all users of the system.

This root temporary directory was created with 0o777&~umask permissions,
which usually becomes 0o755, meaning any user in the system could list
and read the files, which is undesirable.

Use 0o700 permissions instead. Also for subdirectories, because the root
dir is adjustable.
2021-04-04 00:00:42 +03:00
..
code code: simplify Code construction 2020-10-31 12:40:25 +02:00
example_scripts py36+: com2ann 2020-10-05 18:33:17 -07:00
examples pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
freeze testing: fix some docstring issues 2020-08-03 10:10:43 +03:00
io Merge pull request #7481 from bluetech/tw-unicode-escape 2020-07-11 16:01:45 -03:00
logging Improve summary stats when using '--collect-only' (#7875) 2020-11-08 11:45:10 -03:00
plugins_integration Merge pull request #8107 from pytest-dev/dependabot/pip/testing/plugins_integration/pytest-html-3.1.0 2020-12-07 08:52:56 -03:00
python python_api: handle array-like args in approx() (#8137) 2020-12-15 08:50:11 -03:00
acceptance_test.py Merge pull request #8055 from bluetech/unraisable 2020-12-05 21:52:17 +02:00
conftest.py testing: make conftest stuff check for pytester not testdir 2020-10-26 15:01:38 +02:00
deprecated_test.py Export types of builtin fixture for type annotations 2020-11-13 11:25:09 +02:00
test_argcomplete.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_assertion.py Add support to display field names in namedtuple diffs. 2020-10-31 14:41:53 +02:00
test_assertrewrite.py assertion/rewrite: write pyc's according to PEP-552 on Python>=3.7 2020-11-14 23:20:12 +02:00
test_cacheprovider.py Export types of builtin fixture for type annotations 2020-11-13 11:25:09 +02:00
test_capture.py Migrate to pytester: test_capture.py, test_terminal.py, approx.py (#8108) 2020-12-08 22:20:02 +02:00
test_collection.py test_collection.py migrate from testdir to Pytester (#8003) 2020-11-07 16:56:00 +02:00
test_compat.py Migrate test_compat.py from testdir to pytester (#7963) 2020-10-29 09:56:34 +02:00
test_config.py Migrate to pytester: test_capture.py, test_terminal.py, approx.py (#8108) 2020-12-08 22:20:02 +02:00
test_conftest.py testing: convert test_{conftest,recwarn,tmpdir} to pytester 2020-11-16 19:22:57 +02:00
test_debugging.py testing: use pytester.spawn instead of testdir 2020-10-25 10:11:10 +02:00
test_doctest.py main: fix only one doctest collected on pytest --doctest-modules __init__.py 2020-11-10 22:50:46 +02:00
test_entry_points.py Replace importlib_metadata with importlib.metadata on Python 3.8+ 2019-07-04 15:00:10 +02:00
test_error_diffs.py Migrate test_error_diffs.py from testdir to pytester (#7971) 2020-10-30 22:12:40 +02:00
test_faulthandler.py Merge pull request #8250 from daq-tools/fix-twisted-capture 2021-01-20 09:47:10 -03:00
test_findpaths.py py36+: remove rexport of Path and PurePath 2020-10-03 12:16:52 -07:00
test_helpconfig.py #7942 test_helpconfig.py migrate from testdir to pytester 2020-10-26 18:30:48 +03:00
test_junitxml.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_link_resolve.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_main.py py36+: pyupgrade: py36+ 2020-10-03 12:46:54 -07:00
test_mark.py Address feedback for converting testdir to pytester 2020-10-27 17:50:54 +00:00
test_mark_expression.py mark/expression: prevent creation of illegal Python identifiers 2020-06-05 15:57:48 +03:00
test_meta.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_monkeypatch.py Export MonkeyPatch as pytest.MonkeyPatch 2020-11-09 11:28:15 +02:00
test_nodes.py permit node to warn with any warning type, not just PytestWarning (#8052) 2020-11-21 10:49:17 -03:00
test_nose.py Migrate test_nose.py from testdir to pytester 2020-11-30 16:07:26 -06:00
test_parseopt.py Migrate test_parseopt.py from testdir to pytester 2020-11-30 16:27:39 -06:00
test_pastebin.py Migrate test_pastebin.py from testdir to pytester 2020-12-01 12:55:59 -06:00
test_pathlib.py Merge pull request #8123 from nicoddemus/import-mismatch-unc 2020-12-13 10:35:59 -03:00
test_pluginmanager.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_pytester.py Add str() support to LineMatcher (#8050) 2020-11-21 20:45:20 +02:00
test_recwarn.py Merge pull request #8017 from bluetech/typing-public-fixtures 2020-12-05 21:51:20 +02:00
test_reports.py Drop support for EOL Python 3.5 2020-10-19 10:02:36 +03:00
test_runner.py testing: python 3.10 fix 2020-10-25 01:27:44 +02:00
test_runner_xunit.py pytest-dev#7942 test_runner_xunit.py (#7964) 2020-10-31 12:38:11 +02:00
test_session.py #7942 test_session.py migrate from testdir to pytester 2020-11-04 21:55:07 +05:30
test_setuponly.py Migrate test_setuponly.py from testdir to pytester (#7959) 2020-10-29 09:55:30 +02:00
test_setupplan.py #7942 test_setupplan.py migrate from testdir to Pytester (#8004) 2020-11-07 09:29:45 -03:00
test_skipping.py Add `pytest_markeval_namespace` hook. 2020-12-12 17:41:37 +02:00
test_stepwise.py #7942 refactor stepwise tests to utilize pytester 2020-10-30 19:21:42 +00:00
test_store.py Remove no longer needed `noqa: F821` uses 2020-07-10 13:08:56 +03:00
test_terminal.py Merge pull request #8152 from bluetech/empty-skip 2020-12-17 12:59:01 +02:00
test_threadexception.py Add unraisableexception and threadexception plugins 2020-11-21 21:11:48 +02:00
test_tmpdir.py tmpdir: fix temporary directories created with world-readable permissions 2021-04-04 00:00:42 +03:00
test_unittest.py Call Python 3.8 doClassCleanups (#8033) 2020-11-19 12:07:15 +02:00
test_unraisableexception.py Add unraisableexception and threadexception plugins 2020-11-21 21:11:48 +02:00
test_warning_types.py add type hint to parametrized warning_class 2020-10-25 18:31:43 +00:00
test_warnings.py py36+: com2ann 2020-10-05 18:33:17 -07:00
typing_checks.py Fix typing of params ids callable form 2020-07-14 14:53:42 +03:00