Index: pyyaml/trunk/tests/lib/test_input_output.py
===================================================================
--- pyyaml/trunk/tests/lib/test_input_output.py	(revision 333)
+++ pyyaml/trunk/tests/lib/test_input_output.py	(revision 334)
@@ -54,7 +54,7 @@
     data = open(unicode_filename, 'rb').read().decode('utf-8')
     value = ' '.join(data.split())
-    for encoding in [None, 'utf-8', 'utf-16-be', 'utf-16-le']:
-        for allow_unicode in [False, True]:
-            data1 = yaml.dump(value, allow_unicode=allow_unicode)
+    for allow_unicode in [False, True]:
+        data1 = yaml.dump(value, allow_unicode=allow_unicode)
+        for encoding in [None, 'utf-8', 'utf-16-be', 'utf-16-le']:
             stream = StringIO.StringIO()
             yaml.dump(value, _unicode_open(stream, 'utf-8'), encoding=encoding, allow_unicode=allow_unicode)
