diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-02-12 18:05:07 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-02-12 18:05:07 +0000 |
commit | a84f265c36d61c06c3f480f66e106a8864ab4fd4 (patch) | |
tree | 04c7d6d5eff5243fadb11e9a6c318e2a2a292296 /Lib/test/test_fractions.py | |
parent | 293afb8cc9c4db694ebfbcda87e280fe45d29b4f (diff) | |
download | cpython-git-a84f265c36d61c06c3f480f66e106a8864ab4fd4.tar.gz |
Merged revisions 68813,69546 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68813 | raymond.hettinger | 2009-01-20 20:34:19 +0000 (Tue, 20 Jan 2009) | 3 lines
Issue 4998: __slots__ on Fractions was useless.
........
r69546 | mark.dickinson | 2009-02-12 17:55:42 +0000 (Thu, 12 Feb 2009) | 2 lines
Typo fix.
........
Diffstat (limited to 'Lib/test/test_fractions.py')
-rw-r--r-- | Lib/test/test_fractions.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_fractions.py b/Lib/test/test_fractions.py index a6c3c32cb0..0509f92ccb 100644 --- a/Lib/test/test_fractions.py +++ b/Lib/test/test_fractions.py @@ -394,6 +394,11 @@ class FractionTest(unittest.TestCase): 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) |