pytest2/testing
Bruno Oliveira 82a7ca9615 Avoid possible infinite recursion when writing pyc files in assert rewrite
What happens is that atomic_write on Python 2.7 on Windows will try
to convert the paths to unicode, but this triggers the import of
the encoding module for the file system codec, which in turn triggers
the rewrite, which in turn again tries to import the module, and so on.

This short-circuits the cases where we try to import another file when
writing a pyc file; I don't expect this to affect anything because
the only modules that could be affected are those imported by
atomic_writes.

Fix #3506
2018-08-27 21:29:45 -03:00
..
code Improve the coverage of testing/code 2018-08-26 16:13:22 -07:00
example_scripts Collect tests from __init__.py files if they match 'python_files' 2018-08-25 11:18:52 -03:00
examples port some acceptance tests over to copy_example 2018-06-26 22:59:40 +02:00
freeze run black 2018-05-23 16:48:46 +02:00
logging Fixed linting. 2018-08-19 15:46:02 +02:00
python test_package_ordering: Collect *.py, but keep a mix of case for filenames. The test doesn't make sense for Windows, because of its case-insensitivity. 2018-08-24 16:23:50 -07:00
acceptance_test.py Merge pull request #3859 from asottile/pyupgrade_1_4 2018-08-23 18:32:53 -07:00
deprecated_test.py Refactor direct fixture call warning to avoid incompatibility with plugins 2018-08-01 16:38:43 -03:00
test_argcomplete.py pyupgrade 1.4: tests 2018-08-22 18:47:21 -07:00
test_assertion.py py.builtin.text -> six.text_type 2018-08-22 23:00:06 -07:00
test_assertrewrite.py Avoid possible infinite recursion when writing pyc files in assert rewrite 2018-08-27 21:29:45 -03:00
test_cacheprovider.py Cache now obeys -q when showing summary for --lf and --ff 2018-08-26 18:08:19 -03:00
test_capture.py Use `bytes` directly instead of `binary_type` 2018-08-23 18:55:21 -07:00
test_collection.py Collect tests from __init__.py files if they match 'python_files' 2018-08-25 11:18:52 -03:00
test_compat.py Use a custom holder class so we can be sure __pytest_wrapper__ was set by us 2018-08-09 09:22:00 -03:00
test_config.py Replace Source with dedent where possible 2018-08-23 09:06:17 -07:00
test_conftest.py Replace Source with dedent where possible 2018-08-23 09:06:17 -07:00
test_doctest.py Replace Source with dedent where possible 2018-08-23 09:06:17 -07:00
test_entry_points.py run black 2018-05-23 16:48:46 +02:00
test_helpconfig.py pyupgrade 1.4: tests 2018-08-22 18:47:21 -07:00
test_junitxml.py py.builtins._totext -> string literals or six.text_type 2018-08-22 23:00:04 -07:00
test_mark.py Merge remote-tracking branch 'upstream/master' into features 2018-07-04 18:49:35 -03:00
test_modimport.py run black 2018-05-23 16:48:46 +02:00
test_monkeypatch.py Correctly restore sys.path in test and remove dead code in test_pytester 2018-08-25 18:17:52 -03:00
test_nodes.py run black 2018-05-23 16:48:46 +02:00
test_nose.py Upgrade pre-commit hooks except pyupgrade 2018-06-26 06:35:27 -07:00
test_parseopt.py pyupgrade 1.4: tests 2018-08-22 18:47:21 -07:00
test_pastebin.py Upgrade pre-commit hooks except pyupgrade 2018-06-26 06:35:27 -07:00
test_pdb.py pyupgrade 1.4: tests 2018-08-22 18:47:21 -07:00
test_pluginmanager.py Remove dangerous sys.path manipulations in test_pluginmanager 2018-08-25 17:33:29 -03:00
test_pytester.py Correctly restore sys.path in test and remove dead code in test_pytester 2018-08-25 18:17:52 -03:00
test_recwarn.py Upgrade pre-commit hooks except pyupgrade 2018-06-26 06:35:27 -07:00
test_resultlog.py run black 2018-05-23 16:48:46 +02:00
test_runner.py move test reports to own file 2018-06-26 22:09:15 +02:00
test_runner_xunit.py run black 2018-05-23 16:48:46 +02:00
test_session.py Upgrade pre-commit hooks except pyupgrade 2018-06-26 06:35:27 -07:00
test_skipping.py Upgrade pre-commit hooks except pyupgrade 2018-06-26 06:35:27 -07:00
test_terminal.py Merge pull request #3859 from asottile/pyupgrade_1_4 2018-08-23 18:32:53 -07:00
test_tmpdir.py Remove Testdir.run_example as recommended 2018-07-26 20:10:40 -03:00
test_unittest.py Trimming Trailing Whitespace 2018-08-08 18:18:18 -05:00
test_warnings.py simplified test function 2018-08-14 20:29:42 -05:00