Test an em-dash with adjacent punctuation.
diff --git a/Lib/test/test_textwrap.py b/Lib/test/test_textwrap.py
index 36df52a..fc5d0cc 100644
--- a/Lib/test/test_textwrap.py
+++ b/Lib/test/test_textwrap.py
@@ -166,6 +166,12 @@
                   "and", " ", "another!"]
         self.check_split(self.wrapper, text, expect)
 
+        text = "and then--bam!--he was gone"
+        expect = ["and", " ", "then", "--", "bam!", "--",
+                  "he", " ", "was", " ", "gone"]
+        self.check_split(self.wrapper, text, expect)
+
+
     def test_unix_options (self):
         # Test that Unix-style command-line options are wrapped correctly.
         # Both Optik (OptionParser) and Docutils rely on this behaviour!