From 7acfbd070fa207dff309383da6e743ad2b9843c3 Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Fri, 15 Oct 2010 19:14:59 +0000 Subject: style cleanup: prefer ' for strings Tomeu prefers ' for strings, so let's use it wherever we don't have a good reason to use ". Reviewed-by: James Cameron Acked-by: Simon Schampijer CC: Aleksey Lim --- (limited to 'tests') diff --git a/tests/graphics/common.py b/tests/graphics/common.py index 1a7bf47..8085261 100644 --- a/tests/graphics/common.py +++ b/tests/graphics/common.py @@ -45,7 +45,7 @@ class TestPalette(Test): class TestRunner(object): def run(self, test): window = gtk.Window() - window.connect("destroy", lambda w: gtk.main_quit()) + window.connect('destroy', lambda w: gtk.main_quit()) window.add(test) test.show() diff --git a/tests/graphics/hipposcalability.py b/tests/graphics/hipposcalability.py index 4101138..efea57e 100644 --- a/tests/graphics/hipposcalability.py +++ b/tests/graphics/hipposcalability.py @@ -47,5 +47,5 @@ gobject.idle_add(idle_cb) test.show() -if __name__ == "__main__": +if __name__ == '__main__': common.main(test) diff --git a/tests/graphics/iconcache.py b/tests/graphics/iconcache.py index 90511d4..b3a8443 100644 --- a/tests/graphics/iconcache.py +++ b/tests/graphics/iconcache.py @@ -59,12 +59,12 @@ for d in data: test.pack_start(icon) icon.show() -button = gtk.Button("mec mac") +button = gtk.Button('mec mac') test.pack_start(button) button.connect('activate', _button_activated_cb) button.show() test.show() -if __name__ == "__main__": +if __name__ == '__main__': common.main(test) diff --git a/tests/graphics/iconwidget.py b/tests/graphics/iconwidget.py index 625306e..a425c17 100644 --- a/tests/graphics/iconwidget.py +++ b/tests/graphics/iconwidget.py @@ -83,5 +83,5 @@ test.show() #import gobject #gobject.idle_add(idle_cb) -if __name__ == "__main__": +if __name__ == '__main__': common.main(test) diff --git a/tests/graphics/ticket2855.py b/tests/graphics/ticket2855.py index cc4b3c0..4d9d9d4 100644 --- a/tests/graphics/ticket2855.py +++ b/tests/graphics/ticket2855.py @@ -55,5 +55,5 @@ radio.show() palette.set_content(box) box.show() -if __name__ == "__main__": +if __name__ == '__main__': common.main(test) diff --git a/tests/graphics/ticket2999.py b/tests/graphics/ticket2999.py index a7b92d5..caf7adf 100644 --- a/tests/graphics/ticket2999.py +++ b/tests/graphics/ticket2999.py @@ -34,5 +34,5 @@ text_view.props.buffer.props.text = 'Blah blah blah, blah blah blah.' test.pack_start(text_view) text_view.show() -if __name__ == "__main__": +if __name__ == '__main__': common.main(test) diff --git a/tests/graphics/ticket3000.py b/tests/graphics/ticket3000.py index c28b2cb..f2fdfd9 100644 --- a/tests/graphics/ticket3000.py +++ b/tests/graphics/ticket3000.py @@ -44,5 +44,5 @@ toolbar.insert(button, -1) button.show() -if __name__ == "__main__": +if __name__ == '__main__': common.main(test) diff --git a/tests/graphics/toolbarpalettes.py b/tests/graphics/toolbarpalettes.py index 608ef57..3a69455 100644 --- a/tests/graphics/toolbarpalettes.py +++ b/tests/graphics/toolbarpalettes.py @@ -61,5 +61,5 @@ vbox.show() test.show() -if __name__ == "__main__": +if __name__ == '__main__': common.main(test) diff --git a/tests/graphics/tray.py b/tests/graphics/tray.py index f589f4e..99d4891 100644 --- a/tests/graphics/tray.py +++ b/tests/graphics/tray.py @@ -78,5 +78,5 @@ vbox.show() test.show() -if __name__ == "__main__": +if __name__ == '__main__': common.main(test) diff --git a/tests/lib/test_mime.py b/tests/lib/test_mime.py index 860bbdb..b59b58e 100644 --- a/tests/lib/test_mime.py +++ b/tests/lib/test_mime.py @@ -80,5 +80,5 @@ class TestMime(unittest.TestCase): self.assertEqual(mime_type, 'text/plain') -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() -- cgit v0.9.1