Skip to content
Snippets Groups Projects
Verified Commit 3335b8b3 authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Rename toy exception

parent efcc7483
Branches master
No related tags found
No related merge requests found
Pipeline #5508 passed
......@@ -4,7 +4,7 @@ import os
import unittest
from pythonprogress import DoingDone
class TestException(Exception):
class ToyException(Exception):
pass
class DoingDoneTest(unittest.TestCase):
......@@ -93,9 +93,9 @@ class DoingDoneTest(unittest.TestCase):
try:
with DoingDone("Testing", file=pseudo_file) as doing_done:
doing_done.succeed()
raise TestException()
raise ToyException()
except TestException as e:
except ToyException as e:
pass
self.assertEqual(pseudo_file.getvalue(), "Testing... done\n")
......@@ -107,9 +107,9 @@ class DoingDoneTest(unittest.TestCase):
pseudo_file = io.StringIO()
try:
with DoingDone("Testing", file=pseudo_file) as doing_done:
raise TestException()
raise ToyException()
except TestException as e:
except ToyException as e:
pass
self.assertEqual(pseudo_file.getvalue(), "Testing... failed\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment