~jelmer/brz/byov-trunk

« back to all changes in this revision

Viewing changes to breezy/tests/test_import_tariff.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-21 04:58:46 UTC
  • mfrom: (7489.5.5 scandir)
  • Revision ID: breezy.the.bot@gmail.com-20200221045846-q69cgqyvb7bd1jiu
Use os.scandir.

Merged from https://code.launchpad.net/~jelmer/brz/scandir2/+merge/379604

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
    def test_simple_local(self):
155
155
        # 'st' in a default format working tree shouldn't need many modules
156
156
        self.make_branch_and_tree('.')
157
 
        self.run_command_check_imports(['st'], [
 
157
        forbidden_modules = [
158
158
            'breezy.annotate',
159
159
            'breezy.atomicfile',
160
160
            'breezy.bugtracker',
189
189
            'socket',
190
190
            'smtplib',
191
191
            'tarfile',
192
 
            'tempfile',
193
192
            'termios',
194
193
            'tty',
195
 
            ] + old_format_modules)
 
194
            ] + old_format_modules
 
195
        self.run_command_check_imports(['st'], forbidden_modules)
196
196
        # TODO: similar test for repository-only operations, checking we avoid
197
197
        # loading wt-specific stuff
198
198
        #