diff options
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) |