Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-9352

pipe_supertask test fails on python3

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: pipe_supertask
    • Labels:
      None
    • Templates:
    • Team:
      Data Access and Database

      Description

      The python 3 Jenkins job is failing:

      ======================================================================
      FAIL: testCmdLineParser (__main__.CmdLineParserTestCase)
      Test for parser_mod.CmdLineParser
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "tests/testCmdLineParser.py", line 121, in testCmdLineParser
          self.assertRaises(_Error, parser.parse_args)
      AssertionError: _Error not raised by parse_args
      

      I have tried to reproduce on my Mac and I get a different error:

      ====================================================================== FAILURES ======================================================================
      ______________________________________________________ CmdLineParserTestCase.testCmdLineParser _______________________________________________________
       
      self = <testCmdLineParser.CmdLineParserTestCase testMethod=testCmdLineParser>
       
          def testCmdLineParser(self):
              """Test for parser_mod.CmdLineParser
                  """
              parser = parser_mod.makeParser(parser_class=_NoExitParser)
          
              # this should result in error
              self.assertRaises(_Error, parser.parse_args)
          
              # know attributes to appear in parser output
              global_options = """
                      calibRepo clobberConfig clobberOutput clobberVersions debug
                      doraise inputRepo loglevel longlog noBackupConfig noVersions
                      outputRepo packages processes profile rerun subcommand timeout
                      """.split()
          
              # test for the set of options defined in each command
              args = parser.parse_args(
                  """
                      list
                      """.split())
              list_options = ['show', 'show_headers', 'subparser']
      >       self.assertItemsEqual(list(vars(args).keys()), global_options + list_options)
      E       AttributeError: 'CmdLineParserTestCase' object has no attribute 'assertItemsEqual'
       
      tests/testCmdLineParser.py:136: AttributeError
      

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  salnikov Andy Salnikov
                  Reporter:
                  tjenness Tim Jenness
                  Reviewers:
                  Tim Jenness
                  Watchers:
                  Andy Salnikov, John Swinbank, Tim Jenness
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Summary Panel