mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
This commit is contained in:
parent
ad57d97596
commit
bec087f29d
31 changed files with 75 additions and 75 deletions
|
|
@ -31,8 +31,7 @@ import pickle, copy
|
|||
import unittest
|
||||
from decimal import *
|
||||
import numbers
|
||||
from test.test_support import (SkipTest, run_unittest, run_doctest,
|
||||
is_resource_enabled)
|
||||
from test.test_support import (run_unittest, run_doctest, is_resource_enabled)
|
||||
import random
|
||||
try:
|
||||
import threading
|
||||
|
|
@ -194,7 +193,7 @@ class DecimalTest(unittest.TestCase):
|
|||
def eval_file(self, file):
|
||||
global skip_expected
|
||||
if skip_expected:
|
||||
raise SkipTest
|
||||
raise unittest.SkipTest
|
||||
return
|
||||
for line in open(file).xreadlines():
|
||||
line = line.replace('\r\n', '').replace('\n', '')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue