mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
* Web frameworks tests initial * add more no-multiproc tests * Added multiproc flask test * Fix linter * non-multiproc exception tests * Minor fixes * more fixes. * Improve link detection. * Addressing comments and tweaks * More fixes and cleanup * Added django multiproc test with some cleanup * Skip django multi proc for now * fix linting * Disable django tests for 2.7 due to unrelated gun in deugger * More cleanup and stability * Skip django multiproc * Turn off flask test for py2.7 linux/mac
20 lines
604 B
Python
20 lines
604 B
Python
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License. See LICENSE in the project root
|
|
# for license information.
|
|
|
|
import os.path
|
|
|
|
def get_test_root(name):
|
|
pytests_dir = os.path.dirname(os.path.dirname(__file__))
|
|
p = os.path.join(pytests_dir, 'func', 'testfiles', name)
|
|
if os.path.exists(p):
|
|
return p
|
|
return None
|
|
|
|
def compare_path(left, right, show=True):
|
|
n_left = os.path.normcase(left)
|
|
n_right = os.path.normcase(right)
|
|
if show:
|
|
print('LEFT : ' + n_left)
|
|
print('RIGHT: ' + n_right)
|
|
return n_left == n_right
|