Moving import dialog to the top of the file

This commit is contained in:
Amjad Mashaal 2016-06-17 03:57:49 +02:00
parent 56997c926b
commit 6666ff25d4

View file

@ -2,6 +2,7 @@
from __future__ import print_function
import argparse
import dialog
import functools
import itertools
import os
@ -923,8 +924,6 @@ class CLITest(unittest.TestCase): # pylint: disable=too-many-public-methods
traceback.format_exception_only(KeyboardInterrupt, interrupt)))
# Test dialog errors
import dialog
exception = dialog.error(message="test message")
main._handle_exception(
dialog.DialogError, exc_value=exception, trace=None, config=None)