[Python-3000-checkins] r58762 - python/branches/py3k/Lib/test/test_import.py
christian.heimes
python-3000-checkins at python.org
Thu Nov 1 23:37:07 CET 2007
Author: christian.heimes
Date: Thu Nov 1 23:37:07 2007
New Revision: 58762
Modified:
python/branches/py3k/Lib/test/test_import.py
Log:
Removed non ASCII text from test as requested by Guido.
Modified: python/branches/py3k/Lib/test/test_import.py
==============================================================================
--- python/branches/py3k/Lib/test/test_import.py (original)
+++ python/branches/py3k/Lib/test/test_import.py Thu Nov 1 23:37:07 2007
@@ -158,8 +158,9 @@
warnings.simplefilter('error', ImportWarning)
self.assertRaises(ImportWarning, __import__, "site-packages")
-class UnicodePathsTests(unittest.TestCase):
- SAMPLES = ('test', 'testäöüß', 'testéè', 'test°³²')
+class PathsTests(unittest.TestCase):
+ SAMPLES = ('test', 'test\u00e4\u00f6\u00fc\u00df', 'test\u00e9\u00e8',
+ 'test\u00b0\u00b3\u00b2')
path = TESTFN
def setUp(self):
@@ -170,7 +171,7 @@
shutil.rmtree(self.path)
sys.path = self.syspath
- def test_sys_path(self):
+ def test_sys_path_with_unicode(self):
for i, subpath in enumerate(self.SAMPLES):
path = os.path.join(self.path, subpath)
os.mkdir(path)
@@ -198,7 +199,7 @@
unload("test_trailing_slash")
def test_main(verbose=None):
- run_unittest(ImportTest, UnicodePathsTests)
+ run_unittest(ImportTest, PathsTests)
if __name__ == '__main__':
test_main()
More information about the Python-3000-checkins
mailing list