diff options
author | Georg Brandl <georg@python.org> | 2008-03-21 20:38:24 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-21 20:38:24 (GMT) |
commit | 65bb42dc1be3afe9ad0e5413b7843cc65d9d3a37 (patch) | |
tree | e9fcb9f39686f7d1bdd8eecb77c55a36f9902b00 /Lib/test/test_py3kwarn.py | |
parent | 07e5681fd3a8c7169f569f6b70aa824f203f89d9 (diff) | |
download | cpython-65bb42dc1be3afe9ad0e5413b7843cc65d9d3a37.zip cpython-65bb42dc1be3afe9ad0e5413b7843cc65d9d3a37.tar.gz cpython-65bb42dc1be3afe9ad0e5413b7843cc65d9d3a37.tar.bz2 |
#2348: add py3k warning for file.softspace.
Diffstat (limited to 'Lib/test/test_py3kwarn.py')
-rw-r--r-- | Lib/test/test_py3kwarn.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index f030af0..07bcdf9 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -108,6 +108,16 @@ class TestPy3KWarnings(unittest.TestCase): with catch_warning() as w: self.assertWarning(dir(c), w, expected) + def test_softspace(self): + expected = 'file.softspace not supported in 3.x' + with file(__file__) as f: + with catch_warning() as w: + self.assertWarning(f.softspace, w, expected) + def set(): + f.softspace = 0 + with catch_warning() as w: + self.assertWarning(set(), w, expected) + def test_main(): run_unittest(TestPy3KWarnings) |