Commit 63dfece6 authored by Neal Norwitz's avatar Neal Norwitz

Get test to work when run from regrtest (add test_main), remove all CRs (^M)s

parent e2b4b320
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import unittest import unittest
import os import os
from test import test_support
from Tkinter import Tcl from Tkinter import Tcl
from _tkinter import TclError from _tkinter import TclError
...@@ -152,8 +153,9 @@ class TclTest(unittest.TestCase): ...@@ -152,8 +153,9 @@ class TclTest(unittest.TestCase):
finally: finally:
if old_display is not None: if old_display is not None:
os.environ['DISPLAY'] = old_display os.environ['DISPLAY'] = old_display
if __name__ == "__main__":
unittest.main()
def test_main():
test_support.run_unittest(TclTest)
if __name__ == "__main__":
test_main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment