SF #726446: ensure wrap() raises ValueError when width <= 0.
diff --git a/Lib/test/test_textwrap.py b/Lib/test/test_textwrap.py
index b8964dc..0f7f567 100644
--- a/Lib/test/test_textwrap.py
+++ b/Lib/test/test_textwrap.py
@@ -262,6 +262,12 @@
              ["Hello", " ", "there", " ", "--", " ", "you", " ", "goof-",
               "ball,", " ", "use", " ", "the", " ", "-b", " ",  "option!"])
 
+    def test_bad_width(self):
+        # Ensure that width <= 0 is caught.
+        text = "Whatever, it doesn't matter."
+        self.assertRaises(ValueError, wrap, text, 0)
+        self.assertRaises(ValueError, wrap, text, -1)
+
 
 class LongWordTestCase (BaseTestCase):
     def setUp(self):