9481:0b936ff1bbb9 | 9482:a2bc06a54d9d |
---|---|
11 import os | 11 import os |
12 import sys | 12 import sys |
13 import time | 13 import time |
14 import unittest | 14 import unittest |
15 | 15 |
16 sys.path.insert(2, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))) | 16 sys.path.insert( |
17 2, | |
18 os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..")), | |
19 ) | |
20 # three times up is our installation directory | |
17 | 21 |
18 | 22 |
19 class EricTestResult(unittest.TestResult): | 23 class EricTestResult(unittest.TestResult): |
20 """ | 24 """ |
21 Class implementing a TestResult derivative to send the data via a network | 25 Class implementing a TestResult derivative to send the data via a network |
355 os.path.join( | 359 os.path.join( |
356 os.path.dirname(__file__), "..", "..", "DebugClients", "Python" | 360 os.path.dirname(__file__), "..", "..", "DebugClients", "Python" |
357 ) | 361 ) |
358 ), | 362 ), |
359 ) | 363 ) |
360 from eric7.DebugClients.Python.coverage import Coverage | 364 from coverage import Coverage # __IGNORE_WARNING_I10__ |
361 | 365 |
362 cover = Coverage(data_file=covDataFile) | 366 cover = Coverage(data_file=covDataFile) |
363 if coverageErase: | 367 if coverageErase: |
364 cover.erase() | 368 cover.erase() |
365 cover.start() | 369 cover.start() |