Skip to content

Commit

Permalink
Prevent debug warning message from appearing while testing communicat…
Browse files Browse the repository at this point in the history
…ions between kernel and frontend
  • Loading branch information
dalthviz committed Jul 22, 2024
1 parent 8f5bcb8 commit 6d54ed0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qtconsole/tests/test_comms.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import time
from queue import Empty
import unittest
Expand All @@ -11,6 +12,9 @@ class Tests(unittest.TestCase):

def setUp(self):
"""Open a kernel."""
# Prevent tests assertions related with message type from failing
# due to a debug warning
os.environ['PYDEVD_DISABLE_FILE_VALIDATION'] = '1'
self.kernel_manager = QtKernelManager()
self.kernel_manager.start_kernel()
self.kernel_client = self.kernel_manager.client()
Expand Down

0 comments on commit 6d54ed0

Please sign in to comment.