test_ok2/testing
Ran Benita 1278f8b97e 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-03 23:42:53 +03:00
..
code Remove some unused 'tmpdir's 2021-02-20 18:01:42 +00:00
example_scripts Remove/replace some more unnecessary uses of py.path 2021-03-15 10:39:44 +02:00
examples fix bug in test for issue 519 2021-03-07 15:01:39 +01:00
freeze testing: fix some docstring issues 2020-08-03 10:10:43 +03:00
io Increase truncation threshold with -v, disable with -vv 2021-03-26 07:05:30 -03:00
logging tests: Migrate to pytester - incremental update (#8145) 2020-12-15 13:02:32 +02:00
plugins_integration implement Node.path as pathlib.Path 2021-03-06 21:32:03 +01:00
python Remove yet more unnecessary py.path uses 2021-03-18 10:23:48 +02:00
acceptance_test.py Remove/replace some more unnecessary uses of py.path 2021-03-15 10:39:44 +02:00
conftest.py Remove/replace some more unnecessary uses of py.path 2021-03-15 10:39:44 +02:00
deprecated_test.py Deprecate raising unittest.SkipTest to skip tests during collection 2021-01-15 00:05:33 +02:00
test_argcomplete.py pytest-dev#8204 migrate some tests to tmp_path fixture (#8209) 2021-01-01 17:25:11 +02:00
test_assertion.py Add support to display field names in namedtuple diffs. 2020-10-31 14:41:53 +02:00
test_assertrewrite.py Increase truncation threshold with -v, disable with -vv 2021-03-26 07:05:30 -03:00
test_cacheprovider.py cacheprovider: add cache.mkdir() as a Path-returning replacement to makedir() 2021-03-15 10:39:31 +02:00
test_capture.py [pre-commit.ci] pre-commit autoupdate (#8201) 2020-12-30 11:56:09 +02:00
test_collection.py Remove/replace some more unnecessary uses of py.path 2021-03-15 10:39:44 +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 Fix required_plugins with prereleases (#8469) 2021-03-21 22:51:12 +01:00
test_conftest.py Remove/replace some more unnecessary uses of py.path 2021-03-15 10:39:44 +02:00
test_debugging.py [pre-commit.ci] pre-commit autoupdate (#8201) 2020-12-30 11:56:09 +02:00
test_doctest.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2021-03-08 16:55:59 +00: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 Only re-enable fauthandler during unconfigure if it was enabled before 2021-01-25 12:28:00 -03:00
test_findpaths.py py36+: remove rexport of Path and PurePath 2020-10-03 12:16:52 -07:00
test_helpconfig.py Add missing space in '--version' help message 2020-12-28 10:50:06 -05:00
test_junitxml.py Remove/replace some more unnecessary uses of py.path 2021-03-15 10:39:44 +02:00
test_link_resolve.py tests: Migrate to pytester - final update 2020-12-18 11:02:38 -08:00
test_main.py drop usage of py.path.local calls 2021-03-06 21:32:03 +01:00
test_mark.py implement Node.path as pathlib.Path 2021-03-06 21:32:03 +01:00
test_mark_expression.py [pre-commit.ci] pre-commit autoupdate (#8201) 2020-12-30 11:56:09 +02:00
test_meta.py py36+: com2ann 2020-10-05 18:33:17 -07:00
test_monkeypatch.py [pre-commit.ci] pre-commit autoupdate (#8201) 2020-12-30 11:56:09 +02:00
test_nodes.py Remove yet more unnecessary py.path uses 2021-03-18 10:23:48 +02:00
test_nose.py Merge pull request #8399 from atzannes/master 2021-03-04 22:45:57 +02:00
test_parseopt.py Remove/replace some unneeded usages of py.path 2021-03-14 14:12:28 +02:00
test_pastebin.py Migrate test_pastebin.py from testdir to pytester 2020-12-01 12:55:59 -06:00
test_pathlib.py testing: stop relying on comparing to py.path in fnmatcher tests 2021-03-20 21:58:45 +02:00
test_pluginmanager.py [pre-commit.ci] pre-commit autoupdate (#8201) 2020-12-30 11:56:09 +02:00
test_pytester.py Remove/replace some unneeded usages of py.path 2021-03-14 14:12:28 +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 reports: support any PathLike instead of only Path, py.path 2021-03-18 10:23:48 +02:00
test_runner.py implement Node.path as pathlib.Path 2021-03-06 21:32:03 +01:00
test_runner_xunit.py [pre-commit.ci] pre-commit autoupdate (#8201) 2020-12-30 11:56:09 +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 Adjust message for Python 3.10 2021-03-27 11:13:16 -03:00
test_stepwise.py [pre-commit.ci] pre-commit autoupdate (#8201) 2020-12-30 11:56:09 +02:00
test_store.py Remove no longer needed `noqa: F821` uses 2020-07-10 13:08:56 +03:00
test_terminal.py Remove/replace some more unnecessary uses of py.path 2021-03-15 10:39:44 +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-03 23:42:53 +03:00
test_unittest.py code: export ExceptionInfo for typing purposes 2021-03-13 15:59:44 +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 [pre-commit.ci] pre-commit autoupdate (#8201) 2020-12-30 11:56:09 +02:00
typing_checks.py Fix typing of params ids callable form 2020-07-14 14:53:42 +03:00