          self.assertEqual([], p('de;q=2.0'))
          self.assertEqual([], p('de;q=0.a'))
          self.assertEqual([], p('12-345'))
          self.assertEqual([], p(''))
          self.assertEqual([], p('en; q=1,'))
  
      def test_parse_literal_http_header(self):
          """
          Now test that we parse a literal HTTP header correctly.
          """
 
</s> remove             try:
                priority = float(priority)
            except ValueError:
                return []
 </s> add             priority = float(priority) </s> remove         (?:\s*;\s*q=(0(?:\.\d{,3})?|1(?:.0{,3})?))?   # Optional "q=1.00", "q=0.8"
 </s> add         (?:\s*;\s*q=(0(?:\.\d{,3})?|1(?:\.0{,3})?))?  # Optional "q=1.00", "q=0.8"
        self.assertEqual([], p('en;q=1e0'))
          self.assertEqual([], p('de;q=2.0'))
          self.assertEqual([], p('de;q=0.a'))
          self.assertEqual([], p('12-345'))
          self.assertEqual([], p(''))
        self.assertEqual([], p('en;q=1e0'))
  
      def test_parse_literal_http_header(self):
          """
          Now test that we parse a literal HTTP header correctly.
          """
keep keep keep keep replace keep keep keep keep keep
 Fixed #26744 -- Fixed a typo in regex for Accept-Language header parsing. 
tests/i18n/tests.py