@@ -1541,8 +1541,6 @@ def LocalFunc() -> None:
1541
1541
1542
1542
# Since the python bytecode has per version differences, we need different expected results per version
1543
1543
func_matches = {
1544
- (3 , 5 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 \x00 S),(),()' ),
1545
- (3 , 6 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
1546
1544
(3 , 7 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
1547
1545
(3 , 8 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
1548
1546
(3 , 9 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
@@ -1723,8 +1721,6 @@ def LocalFunc() -> None:
1723
1721
pass
1724
1722
1725
1723
func_matches = {
1726
- (3 , 5 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 \x00 S),(),()' ),
1727
- (3 , 6 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
1728
1724
(3 , 7 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
1729
1725
(3 , 8 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
1730
1726
(3 , 9 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
@@ -1736,8 +1732,6 @@ def LocalFunc() -> None:
1736
1732
}
1737
1733
1738
1734
meth_matches = {
1739
- (3 , 5 ): bytearray (b'1, 1, 0, 0,(),(),(d\x00 \x00 S),(),()' ),
1740
- (3 , 6 ): bytearray (b'1, 1, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
1741
1735
(3 , 7 ): bytearray (b'1, 1, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
1742
1736
(3 , 8 ): bytearray (b'1, 1, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
1743
1737
(3 , 9 ): bytearray (b'1, 1, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
@@ -1978,8 +1972,6 @@ def LocalFunc() -> None:
1978
1972
pass
1979
1973
1980
1974
func_matches = {
1981
- (3 , 5 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 \x00 S),(),()' ),
1982
- (3 , 6 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
1983
1975
(3 , 7 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
1984
1976
(3 , 8 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
1985
1977
(3 , 9 ): bytearray (b'0, 0, 0, 0,(),(),(d\x00 S\x00 ),(),()' ),
@@ -2042,8 +2034,6 @@ def LocalFunc() -> None:
2042
2034
pass
2043
2035
2044
2036
matches = {
2045
- (3 , 5 ): b'd\x00 \x00 S' ,
2046
- (3 , 6 ): b'd\x00 S\x00 ' ,
2047
2037
(3 , 7 ): b'd\x00 S\x00 ' ,
2048
2038
(3 , 8 ): b'd\x00 S\x00 ' ,
2049
2039
(3 , 9 ): b'd\x00 S\x00 ' ,
@@ -2246,8 +2236,6 @@ def func1(a, b, c):
2246
2236
# we need different expected results per version
2247
2237
# Note unlike the others, this result is a tuple, use assertIn
2248
2238
expected = {
2249
- (3 , 5 ): (bytearray (b'3, 3, 0, 0,(),(),(|\x00 \x00 S),(),()' ),),
2250
- (3 , 6 ): (bytearray (b'3, 3, 0, 0,(),(),(|\x00 S\x00 ),(),()' ),),
2251
2239
(3 , 7 ): (bytearray (b'3, 3, 0, 0,(),(),(|\x00 S\x00 ),(),()' ),),
2252
2240
(3 , 8 ): (bytearray (b'3, 3, 0, 0,(),(),(|\x00 S\x00 ),(),()' ),),
2253
2241
(3 , 9 ): (bytearray (b'3, 3, 0, 0,(),(),(|\x00 S\x00 ),(),()' ),),
@@ -2275,12 +2263,6 @@ def test_object_contents(self) -> None:
2275
2263
# Since the python bytecode has per version differences,
2276
2264
# we need different expected results per version
2277
2265
expected = {
2278
- (3 , 5 ): bytearray (
2279
- b"{TestClass:__main__}[[[(<class \' object\' >, ()), [(<class \' __main__.TestClass\' >, (<class \' object\' >,))]]]]{{1, 1, 0, 0,(a,b),(a,b),(d\x01 \x00 |\x00 \x00 _\x00 \x00 d\x02 \x00 |\x00 \x00 _\x01 \x00 d\x00 \x00 S),(),(),2, 2, 0, 0,(),(),(d\x00 \x00 S),(),()}}{{{a=a,b=b}}}"
2280
- ),
2281
- (3 , 6 ): bytearray (
2282
- b"{TestClass:__main__}[[[(<class \' object\' >, ()), [(<class \' __main__.TestClass\' >, (<class \' object\' >,))]]]]{{1, 1, 0, 0,(a,b),(a,b),(d\x01 |\x00 _\x00 d\x02 |\x00 _\x01 d\x00 S\x00 ),(),(),2, 2, 0, 0,(),(),(d\x00 S\x00 ),(),()}}{{{a=a,b=b}}}"
2283
- ),
2284
2266
(3 , 7 ): bytearray (
2285
2267
b"{TestClass:__main__}[[[(<class \' object\' >, ()), [(<class \' __main__.TestClass\' >, (<class \' object\' >,))]]]]{{1, 1, 0, 0,(a,b),(a,b),(d\x01 |\x00 _\x00 d\x02 |\x00 _\x01 d\x00 S\x00 ),(),(),2, 2, 0, 0,(),(),(d\x00 S\x00 ),(),()}}{{{a=a,b=b}}}"
2286
2268
),
@@ -2314,12 +2296,6 @@ def test_code_contents(self) -> None:
2314
2296
2315
2297
# Since the python bytecode has per version differences, we need different expected results per version
2316
2298
expected = {
2317
- (3 , 5 ): bytearray (
2318
- b'0, 0, 0, 0,(Hello, World!),(print),(e\x00 \x00 d\x00 \x00 \x83 \x01 \x00 \x01 d\x01 \x00 S)'
2319
- ),
2320
- (3 , 6 ): bytearray (
2321
- b'0, 0, 0, 0,(Hello, World!),(print),(e\x00 d\x00 \x83 \x01 \x01 \x00 d\x01 S\x00 )'
2322
- ),
2323
2299
(3 , 7 ): bytearray (
2324
2300
b'0, 0, 0, 0,(Hello, World!),(print),(e\x00 d\x00 \x83 \x01 \x01 \x00 d\x01 S\x00 )'
2325
2301
),
@@ -2387,17 +2363,17 @@ def test_scons_subproc_run(self):
2387
2363
{"text" : True , "check" : False },
2388
2364
)
2389
2365
2390
- # 3.6 :
2391
- sys .version_info = (3 , 6 , 2 )
2366
+ # 3.7 :
2367
+ sys .version_info = (3 , 7 , 2 )
2392
2368
with self .subTest ():
2393
2369
self .assertEqual (
2394
2370
scons_subproc_run (env , capture_output = True ),
2395
- {"check " : False , "stdout " : PIPE , "stderr" : PIPE },
2371
+ {"capture_output " : True , "check " : False },
2396
2372
)
2397
2373
with self .subTest ():
2398
2374
self .assertEqual (
2399
2375
scons_subproc_run (env , text = True ),
2400
- {"check" : False , "universal_newlines " : True },
2376
+ {"check" : False , "text " : True },
2401
2377
)
2402
2378
with self .subTest ():
2403
2379
self .assertEqual (
0 commit comments