commit | 933d3a7a5474d135e451980a42171a690bd2bd2d | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Tue Jan 20 20:34:19 2009 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Tue Jan 20 20:34:19 2009 +0000 |
tree | 4e3e017c160d3654c8b85ba656f92580f5b7107d | |
parent | e548d2487d972288b60d45c25b2820b8cb2b65b6 [diff] [blame] |
Issue 4998: __slots__ on Fractions was useless.
diff --git a/Lib/test/test_fractions.py b/Lib/test/test_fractions.py index a6c3c32..0509f92 100644 --- a/Lib/test/test_fractions.py +++ b/Lib/test/test_fractions.py
@@ -394,6 +394,11 @@ self.assertEqual(id(r), id(copy(r))) self.assertEqual(id(r), id(deepcopy(r))) + def test_slots(self): + # Issue 4998 + r = F(13, 7) + self.assertRaises(AttributeError, setattr, r, 'a', 10) + def test_main(): run_unittest(FractionTest, GcdTest)