New submission from Anthony Long <antl...@gmail.com>: import unittest from selenium import selenium
class SetupSomething(unittest.TestCase): def setUp(self, URL): self.selenium = selenium("localhost", 4444, "*firefox", self.URL) def tearDown(self): pass class TestSomething(SetupSomething): def __init__(): print "bug." def setUp(self): self.URL = "http://google.com/" def tearDown(self): pass def test_tester(self): self.selenium.open('/') print "no" unittest.main() ---- TypeError: '__init__() takes no arguments (2 given)' ---------- messages: 113802 nosy: antlong priority: normal severity: normal status: open title: __init__ TypeError reverses expected vs received args versions: Python 2.6, Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9590> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com