forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-testingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugverifiedVerification succeededVerification succeeded
Milestone
Description
Issue Type: Bug
Here is a sample test script in which the same test is executed with different configurations.
import unittest
class Foo(unittest.TestCase):
config = "Hello"
def test_Print(self):
print(self.config)
class FooConfigured(Foo):
config = "World"
if __name__ == '__main__':
unittest.main()If I try to run all tests in the file, only FooConfigured is executed. If I try to run the Foo class as a whole, the same thing happens. I have to explicitly run Foo.test_Print or it will never be executed.
In my real world project there are 15 test methods, and the configuration required is picking a version of a dependency to run against.
Extension version: 2019.11.50794
VS Code version: Code 1.40.1 (8795a9889db74563ddd43eb0a897a2384129a619, 2019-11-13T16:49:30.162Z)
OS version: Linux x64 4.15.0-70-generic
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz (4 x 2531) |
| GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: disabled_software skia_renderer: disabled_off surface_control: disabled_off surface_synchronization: enabled_on video_decode: unavailable_off viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | 1, 1, 0 |
| Memory (System) | 11.46GB (7.43GB free) |
| Process Argv | --no-sandbox --unity-launch |
| Screen Reader | no |
| VM | 0% |
Metadata
Metadata
Assignees
Labels
area-testingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugverifiedVerification succeededVerification succeeded