summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-05-03 16:10:16 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-05-03 16:10:16 +0200
commit40efd5313e06b5f60320fd5b73508d8ccb9bfe39 (patch)
treec3ca925e16413674e439569a3e6b6e5346c13e4f
parentb705bac4cb41e04fb889165655fdfd4e65efaed2 (diff)
downloadcython-40efd5313e06b5f60320fd5b73508d8ccb9bfe39.tar.gz
Clean up some code formatting.
-rwxr-xr-xruntests.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/runtests.py b/runtests.py
index 35d6522f3..72b84e43a 100755
--- a/runtests.py
+++ b/runtests.py
@@ -1597,7 +1597,7 @@ class TestCodeFormat(unittest.TestCase):
import pycodestyle
config_file = os.path.join(self.cython_dir, "setup.cfg")
if not os.path.exists(config_file):
- config_file=os.path.join(os.path.dirname(__file__), "setup.cfg")
+ config_file = os.path.join(os.path.dirname(__file__), "setup.cfg")
paths = []
for codedir in ['Cython', 'Demos', 'docs', 'pyximport', 'tests']:
paths += glob.glob(os.path.join(self.cython_dir, codedir + "/**/*.py"), recursive=True)
@@ -1700,8 +1700,7 @@ class EndToEndTest(unittest.TestCase):
"""
cython_root = os.path.dirname(os.path.abspath(__file__))
- def __init__(self, treefile, workdir, cleanup_workdir=True, stats=None,
- capture=True):
+ def __init__(self, treefile, workdir, cleanup_workdir=True, stats=None, capture=True):
self.name = os.path.splitext(os.path.basename(treefile))[0]
self.treefile = treefile
self.workdir = os.path.join(workdir, self.name)