aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_write_annotations.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-11-17 19:42:56 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-11-17 19:45:42 +0800
commit582be3584761030bfbee13b0c6ea9e6ce2c8a790 (patch)
tree7de027866475514d227e4e776b63a5e8e06e7153 /test/test_write_annotations.py
parent073d5bf583e8ff8ae71efca5fc6fae0743ac8961 (diff)
downloadyoutube-dl-582be3584761030bfbee13b0c6ea9e6ce2c8a790.zip
youtube-dl-582be3584761030bfbee13b0c6ea9e6ce2c8a790.tar.gz
youtube-dl-582be3584761030bfbee13b0c6ea9e6ce2c8a790.tar.bz2
Update coding style after pycodestyle 2.1.0
In pycodestyle 2.1.0, E305 was introduced, which requires two blank lines after top level declarations, too. See https://github.com/PyCQA/pycodestyle/issues/400 See also #10689; thanks @stepshal for first mentioning this issue and initial patches
Diffstat (limited to 'test/test_write_annotations.py')
-rw-r--r--test/test_write_annotations.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_write_annotations.py b/test/test_write_annotations.py
index 8de08f2..41abdfe 100644
--- a/test/test_write_annotations.py
+++ b/test/test_write_annotations.py
@@ -24,6 +24,7 @@ class YoutubeDL(youtube_dl.YoutubeDL):
super(YoutubeDL, self).__init__(*args, **kwargs)
self.to_stderr = self.to_screen
+
params = get_params({
'writeannotations': True,
'skip_download': True,
@@ -74,5 +75,6 @@ class TestAnnotations(unittest.TestCase):
def tearDown(self):
try_rm(ANNOTATIONS_FILE)
+
if __name__ == '__main__':
unittest.main()