Skip to content

Commit

Permalink
Merge pull request #613 from dalthviz/fix_test_comms
Browse files Browse the repository at this point in the history
Prevent debugger warning message from appearing while testing communications between kernel and frontend
  • Loading branch information
ccordoba12 authored Jul 23, 2024
2 parents 8f5bcb8 + 6d54ed0 commit 6d9a986
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 6d9a986

Please sign in to comment.