Skip to content

Commit 468e561

Browse files
Set NO_COLOR to 1 for test_compiler_assemble & test_dis test cases, because dis is not defaulting to syntax highligthing. Of course it needs better handling which I'm not sure now.
1 parent 1e0b1ab commit 468e561

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Lib/test/test_compiler_assemble.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import dis
22
import io
3+
import os
34
import textwrap
45
import types
56

67
from test.support.bytecode_helper import AssemblerTestCase
78

89

10+
os.environ.setdefault("NO_COLOR", "1")
11+
912
# Tests for the code-object creation stage of the compiler.
1013

1114
class IsolatedAssembleTests(AssemblerTestCase):

Lib/test/test_dis.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import io
88
import itertools
99
import opcode
10+
import os
1011
import re
1112
import sys
1213
import tempfile
@@ -19,6 +20,8 @@
1920
from test.support.bytecode_helper import BytecodeTestCase
2021

2122

23+
os.environ.setdefault("NO_COLOR", "1")
24+
2225
CACHE = dis.opmap["CACHE"]
2326

2427
def get_tb():

0 commit comments

Comments
 (0)