Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
13c5b05
Hard reset + cherry piciking the changes.
idomic Feb 11, 2020
fdecdf0
📜🤖 Added by blurb_it.
blurb-it[bot] Feb 11, 2020
29d13c9
Added @vstinner News
idomic Feb 12, 2020
135259f
Update Misc/NEWS.d/next/Library/2020-02-11-13-01-38.bpo-38691.oND8Sk.rst
idomic Feb 13, 2020
794b948
Merge branch 'master' of https://github.com/python/cpython
idomic Feb 15, 2020
bfa3cd1
Merge branch 'master' of https://github.com/python/cpython
idomic Feb 16, 2020
36b41eb
[bpo-10572] Moved tests of these modules under Lib/tests/MODULE_NAME_…
idomic Feb 16, 2020
69ad225
[bpo-10572] Changing test references for CI
idomic Feb 16, 2020
8e7db7a
[bpo-10572] Adapting tests imports
idomic Feb 16, 2020
71b4de5
Merge branch 'master' of https://github.com/python/cpython
idomic Feb 16, 2020
4be42f0
Removed residues
idomic Feb 16, 2020
4a3cf9f
Merge branch 'master' into bpo-10572-reArranging_Lib_tests
idomic Feb 16, 2020
18c5f36
[bpo-10572] Changed Makefile.pre.in to contain the correct tests path
idomic Feb 16, 2020
60a14df
📜🤖 Added by blurb_it.
blurb-it[bot] Feb 16, 2020
fbd63a8
[bpo-10572] Changed Makefile.pre.in to contain the correct tests path
idomic Feb 16, 2020
e3ff1cd
Merge remote-tracking branch 'origin/bpo-10572-reArranging_Lib_tests'…
idomic Feb 16, 2020
bb4e8b8
[bpo-10572] Changed Makefile.pre.in to contain the correct tests path
idomic Feb 16, 2020
65db1d2
[bpo-10572] Fixing distutils tests path
idomic Feb 16, 2020
7cfa472
[bpo-10572] Fixing Lib.test.tkinter_test tests path
idomic Feb 16, 2020
fd7ed2b
[bpo-10572] Fixing Lib.test.unittest_test + ctypes tests path
idomic Feb 16, 2020
6b32dd1
[bpo-10572] Fixing Lib.test.unittest_test + test_lib2to3 tests path
idomic Feb 17, 2020
1021fcf
[bpo-10572] Fixing Lib.test.unittest_test + test_lib2to3 tests path
idomic Feb 17, 2020
f5431d8
[bpo-10572] Fixed hardcoded Lib.test.unittest_test and lib2to3 path
idomic Feb 17, 2020
d89915f
[bpo-10572] Fixed hardcoded Lib.test.unittest_test and lib2to3 path
idomic Feb 17, 2020
a5e9500
[bpo-10572] Fixed hardcoded Lib.test.unittest_test and lib2to3 path
idomic Feb 17, 2020
19ab4cd
[bpo-10572] Fixed hardcoded Lib.test.unittest_test and lib2to3 path
idomic Feb 17, 2020
1010154
[bpo-10572] Fixed hardcoded Lib.test.unittest_test and lib2to3 path
idomic Feb 17, 2020
e65b43c
[bpo-10572] Fixed hardcoded Lib.test.unittest_test and lib2to3 path
idomic Feb 17, 2020
4609963
[bpo-10572] Fixed hardcoded Lib.test.unittest_test and lib2to3 path
idomic Feb 17, 2020
c552264
[bpo-10572] Fixed hardcoded Lib.test.unittest_test and lib2to3 path
idomic Feb 17, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[bpo-10572] Fixed hardcoded Lib.test.unittest_test and lib2to3 path
  • Loading branch information
idomic committed Feb 17, 2020
commit 1010154a366e36a03ccae63cdfa60d98c9d8a483
10 changes: 5 additions & 5 deletions Lib/test/lib2to3_tests/test_fixers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,7 @@ def f():

class Test_imports(FixerTestCase, ImportsFixerTests):
fixer = "imports"
from ..fixes.fix_imports import MAPPING as modules
from lib2to3.fixes.fix_imports import MAPPING as modules

def test_multiple_imports(self):
b = """import urlparse, cStringIO"""
Expand All @@ -1812,16 +1812,16 @@ def test_multiple_imports_as(self):

class Test_imports2(FixerTestCase, ImportsFixerTests):
fixer = "imports2"
from ..fixes.fix_imports2 import MAPPING as modules
from lib2to3.fixes.fix_imports2 import MAPPING as modules


class Test_imports_fixer_order(FixerTestCase, ImportsFixerTests):

def setUp(self):
super(Test_imports_fixer_order, self).setUp(['imports', 'imports2'])
from ..fixes.fix_imports2 import MAPPING as mapping2
from lib2to3.fixes.fix_imports2 import MAPPING as mapping2
self.modules = mapping2.copy()
from ..fixes.fix_imports import MAPPING as mapping1
from lib2to3.fixes.fix_imports import MAPPING as mapping1
for key in ('dbhash', 'dumbdbm', 'dbm', 'gdbm'):
self.modules[key] = mapping1[key]

Expand All @@ -1833,7 +1833,7 @@ def test_after_local_imports_refactoring(self):

class Test_urllib(FixerTestCase):
fixer = "urllib"
from ..fixes.fix_urllib import MAPPING as modules
from lib2to3.fixes.fix_urllib import MAPPING as modules

def test_import_module(self):
for old, changes in self.modules.items():
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/unittest_test/test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import unittest

from unittest.test.support import (
from Lib.test.unittest_test.support import (
TestEquality, TestHashing, LoggingResult, LegacyLoggingResult,
ResultWithNoStartTestRunStopTestRun
)
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/unittest_test/test_functiontestcase.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from unittest.test.support import LoggingResult
from Lib.test.unittest_test.support import LoggingResult


class Test_FunctionTestCase(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/unittest_test/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import unittest
from unittest.case import _Outcome

from unittest.test.support import (LoggingResult,
from Lib.test.unittest_test.support import (LoggingResult,
ResultWithNoStartTestRunStopTestRun)


Expand Down
2 changes: 1 addition & 1 deletion Lib/test/unittest_test/test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import gc
import sys
import weakref
from unittest.test.support import LoggingResult, TestEquality
from Lib.test.unittest_test.support import LoggingResult, TestEquality


### Support code for Test_TestSuite
Expand Down