(self)
| 622 | strobj = sys.intern(strobj) |
| 623 | |
| 624 | def testIntern(self): |
| 625 | s = marshal.loads(marshal.dumps(self.strobj)) |
| 626 | self.assertEqual(s, self.strobj) |
| 627 | self.assertEqual(id(s), id(self.strobj)) |
| 628 | s2 = sys.intern(s) |
| 629 | self.assertEqual(id(s2), id(s)) |
| 630 | |
| 631 | def testNoIntern(self): |
| 632 | s = marshal.loads(marshal.dumps(self.strobj, 2)) |
nothing calls this directly
no test coverage detected