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

This commit is contained in:
Neal Norwitz 2004-02-19 02:37:29 +00:00
parent e2b4b32025
commit 63dfece675
1 changed files with 6 additions and 4 deletions

View File

@ -2,6 +2,7 @@
import unittest
import os
from test import test_support
from Tkinter import Tcl
from _tkinter import TclError
@ -153,7 +154,8 @@ class TclTest(unittest.TestCase):
if old_display is not None:
os.environ['DISPLAY'] = old_display
def test_main():
test_support.run_unittest(TclTest)
if __name__ == "__main__":
unittest.main()
test_main()