From dc91f48833e5f3b94f02a0be16d0d47c10d364f5 Mon Sep 17 00:00:00 2001 From: John Ehresman Date: Thu, 15 Apr 2010 12:55:34 -0400 Subject: Changes for tests to run in python 3 --- tests/test_mainloop.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/test_mainloop.py') diff --git a/tests/test_mainloop.py b/tests/test_mainloop.py index 95e5f78..afb550a 100644 --- a/tests/test_mainloop.py +++ b/tests/test_mainloop.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -import exceptions import os import sys import select @@ -31,7 +30,7 @@ class TestMainLoop(unittest.TestCase): os.close(pipe_w) def excepthook(type, value, traceback): - assert type is exceptions.Exception + assert type is Exception assert value.args[0] == "deadbabe" sys.excepthook = excepthook -- cgit