~ubuntu-branches/ubuntu/trusty/python3.3/trusty

« back to all changes in this revision

Viewing changes to Lib/distutils/tests/test_cmd.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-11-19 08:46:55 UTC
  • mfrom: (22.1.15 sid)
  • Revision ID: package-import@ubuntu.com-20131119084655-pueqfadzs5v1xf53
Tags: 3.3.3-1
* Python 3.3.3 release.
* Update to 20131119 from the 3.3 branch.
* Regenerate the patches.
* Update the symbols files.
* Fix test support when the running kernel doesn't handle port reuse.
* libpython3.3-minimal replaces libpython3.3-stdlib (<< 3.2.3-7).
  Closes: #725240.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        self.assertRaises(DistutilsOptionError,
35
35
                          cmd.ensure_string_list, 'not_string_list2')
36
36
 
 
37
        cmd.option1 = 'ok,dok'
 
38
        cmd.ensure_string_list('option1')
 
39
        self.assertEqual(cmd.option1, ['ok', 'dok'])
 
40
 
 
41
        cmd.option2 = ['xxx', 'www']
 
42
        cmd.ensure_string_list('option2')
 
43
 
 
44
        cmd.option3 = ['ok', 2]
 
45
        self.assertRaises(DistutilsOptionError, cmd.ensure_string_list,
 
46
                          'option3')
 
47
 
 
48
 
37
49
    def test_make_file(self):
38
50
 
39
51
        cmd = self.cmd
77
89
        cmd.option3 = 1
78
90
        self.assertRaises(DistutilsOptionError, cmd.ensure_string, 'option3')
79
91
 
80
 
    def test_ensure_string_list(self):
81
 
        cmd = self.cmd
82
 
        cmd.option1 = 'ok,dok'
83
 
        cmd.ensure_string_list('option1')
84
 
        self.assertEqual(cmd.option1, ['ok', 'dok'])
85
 
 
86
 
        cmd.option2 = ['xxx', 'www']
87
 
        cmd.ensure_string_list('option2')
88
 
 
89
 
        cmd.option3 = ['ok', 2]
90
 
        self.assertRaises(DistutilsOptionError, cmd.ensure_string_list,
91
 
                          'option3')
92
 
 
93
92
    def test_ensure_filename(self):
94
93
        cmd = self.cmd
95
94
        cmd.option1 = __file__