aboutsummaryrefslogtreecommitdiff
path: root/test/test_utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-10-15 02:00:53 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-10-15 02:00:55 +0200
commit44a5f1718a5657a08082d8fd3201403bf2683c4f (patch)
tree97b83864087d2b6fd3696f785a764389b86d4d66 /test/test_utils.py
parenta623df4c7b099bc3adfe943c7155e55c6512aeff (diff)
Simplify tests
* Make them directly executable again * Move common stuff (md5, parameters) to helper * Never import * * General clean up
Diffstat (limited to 'test/test_utils.py')
-rw-r--r--test/test_utils.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index f2c03d421..270669044 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -1,14 +1,14 @@
#!/usr/bin/env python
-# Various small unit tests
-
+# Allow direct execution
+import os
import sys
import unittest
-import xml.etree.ElementTree
+sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-# Allow direct execution
-import os
-sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+
+# Various small unit tests
+import xml.etree.ElementTree
#from youtube_dl.utils import htmlentity_transform
from youtube_dl.utils import (