Commits

Senthil Kumaran committed a3c0056

Reverting the changes made in r78432. Discussed in the tracker issue7540.

  • Participants
  • Parent commits c359d5a
  • Branches 2.6

Comments (0)

Files changed (2)

Lib/test/test_urllib2.py

         self.get.add_data("spam")
         self.assert_(self.get.has_data())
         self.assertEqual("POST", self.get.get_method())
-        self.assertRaises(TypeError,self.get.add_data, "more spam")
 
     def test_get_full_url(self):
         self.assertEqual("http://www.python.org/~jeremy/",
     # XXX these helper methods are lame
 
     def add_data(self, data):
-        if self.has_data():
-            raise TypeError("Request Obj already contains data: %s" %
-                            self.data)
         self.data = data
 
     def has_data(self):