mirror of
https://github.com/PyCQA/flake8.git
synced 2026-07-06 03:39:30 +00:00
automatic: pyupgrade --py36-plus
This commit is contained in:
parent
8cc3fc01e8
commit
358ae85120
51 changed files with 185 additions and 149 deletions
|
|
@ -1,5 +1,6 @@
|
|||
"""Unit tests for the FileChecker class."""
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import pytest
|
||||
|
||||
import flake8
|
||||
|
|
@ -50,7 +51,7 @@ def test_nonexistent_file():
|
|||
def test_raises_exception_on_failed_plugin(tmp_path, default_options):
|
||||
"""Checks that a failing plugin results in PluginExecutionFailed."""
|
||||
foobar = tmp_path / 'foobar.py'
|
||||
foobar.write_text(u"I exist!") # Create temp file
|
||||
foobar.write_text("I exist!") # Create temp file
|
||||
plugin = {
|
||||
"name": "failure",
|
||||
"plugin_name": "failure", # Both are necessary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue