[Python-modules-team] Bug#686340: cssutils: FTBFS with Python 3.3: AssertionError: Tuples differ: (None, None) != ('text/html', 'ascii')

Jakub Wilk jwilk at debian.org
Fri Aug 31 09:58:14 UTC 2012


Source: cssutils
Version: 0.9.10~b1-1
Severity: important
Tags: sid
User: debian-python at lists.debian.org
Usertags: python3.3

cssutils FTBFS if built against Python 3.3:
| + nosetests-3.3 -v --exclude=test_parseString --exclude=test_parseFile --exclude=test_parseUrl --exclude=test_combine --exclude=test_cssText2 --exclude=test_errorhandler.py --py3where /build/cssutils-rJx1Up/cssutils-0.9.10~b1/build/lib/tests
| codec.decode (force) ... ok
| codecs.decoder ... ok
| codec.detectencoding_str() ... ok
| codec.detectencoding_unicode() ... ok
| codec.encoder ... ok
| codec._fixencoding() ... ok
| CSSMediaRule.cssRules.parentRule .parentStyleSheet .type ... ok
| CSSCharsetRule InvalidModificationErr ... ok
| CSSCharsetRule.cssText ... ok
| CSSCharsetRule.encoding ... ok
| CSSCharsetRule.__init__() ... ok
| CSSCharsetRule.__init__(encoding) ... ok
| CSSRule.parentRule .parentStyleSheet .type ... ok
| CSSRule readonly ... ok
| CSSCharsetRule.__repr__() ... ok
| CSSCharsetRule.__repr__(), .__str__() ... ok
| CSSMediaRule.cssRules.parentRule .parentStyleSheet .type ... ok
| CSSComment.cssText InvalidModificationErr ... ok
| CSSComment.cssText ... ok
| CSSComment.type and init ... ok
| CSSRule.parentRule .parentStyleSheet .type ... ok
| CSSRule readonly ... ok
| CSSComment.__repr__(), .__str__() ... ok
| CSSMediaRule.cssRules.parentRule .parentStyleSheet .type ... ok
| CSSFontFaceRule.cssText InvalidModificationErr ... ok
| CSSFontFaceRule.cssText ... ok
| CSSFontFaceRule (incomplete) ... ok
| CSSFontFaceRule.__init__() ... ok
| CSSRule.parentRule .parentStyleSheet .type ... ok
| CSSFontFaceRule.style properties ... ok
| CSSRule readonly ... ok
| CSSFontFaceRule.__repr__(), .__str__() ... ok
| CSSFontFaceRule.style (and references) ... ok
| CSSFontFaceRule.valid ... ok
| CSSMediaRule.cssRules.parentRule .parentStyleSheet .type ... ok
| CSSImportRule.cssText InvalidModificationErr ... ok
| CSSImportRule.cssText ... ok
| CSSImportRule.href ... ok
| CSSImportRule.hrefFound ... ok
| CSSImportRule.hreftype ... ok
| CSSImportRule (incomplete) ... ok
| CSSImportRule.__init__() ... ok
| CSSImportRule.media ... ok
| CSSImportRule.name ... ok
| CSSRule.parentRule .parentStyleSheet .type ... ok
| CSSRule readonly ... ok
| CSSImportRule.__repr__(), .__str__() ... ok
| CSSImportRule.styleSheet ... ok
| CSSMediaRule.cssRules.parentRule .parentStyleSheet .type ... ok
| CSSMediaRule.cssText InvalidModificationErr ... ok
| CSSMediaRule.add() ... ok
| CSSMediaRule.cssRules ... ok
| CSSMediaRule.cssText ... ok
| CSSMediaRule.deleteRule(rule) ... ok
| CSSMediaRule.deleteRule(index) ... ok
| CSSMediaRule (incomplete) ... ok
| CSSMediaRule.__init__() ... ok
| CSSMediaRule.insertRule ... ok
| CSSMediaRule.__iter__() ... ok
| CSSMediaRule.media ... ok
| CSSMediaRule.name ... ok
| CSSRule.parentRule .parentStyleSheet .type ... ok
| CSSRule readonly ... ok
| CSSStylesheet references ... ok
| CSSMediaRule.__repr__(), .__str__() ... ok
| CSSMediaRule.cssRules.parentRule .parentStyleSheet .type ... ok
| CSSNamespaceRule.cssText InvalidModificationErr ... ok
| CSSNamespaceRule.cssText ... ok
| CSSNamespaceRule (incomplete) ... ok
| CSSNamespaceRule.__init__() ... ok
| CSSNamespaceRule.namespaceURI ... ok
| CSSRule.parentRule .parentStyleSheet .type ... ok
| CSSNamespaceRule.prefix ... ok
| CSSRule readonly ... ok
| CSSNamespaceRule.__repr__(), .__str__() ... ok
| CSSMediaRule.cssRules.parentRule .parentStyleSheet .type ... ok
| CSSPageRule.cssText InvalidModificationErr ... ok
| CSSPageRule.cssRules ... ok
| CSSPageRule.cssText ... ok
| CSSPageRule (incomplete) ... ok
| CSSPageRule.__init__() ... ok
| CSSRule.parentRule .parentStyleSheet .type ... ok
| CSSPageRule.style properties ... ok
| CSSRule readonly ... ok
| CSSPageRule.__repr__(), .__str__() ... ok
| CSSPageRule.selectorText ... ok
| CSSPageRule.specificity ... ok
| CSSPageRule.style (and references) ... ok
| CSS2Properties ... ok
| cssproperties _toCSSname(DOMname) ... ok
| cssproperties _toDOMname(CSSname) ... ok
| CSSMediaRule.cssRules.parentRule .parentStyleSheet .type ... ok
| CSSRule.type and init ... ok
| CSSRule.parentRule .parentStyleSheet .type ... ok
| CSSRule readonly ... ok
| CSSRuleList.__init__() ... ok
| CSSRuleList.rulesOfType() ... ok
| CSSStyleDeclaration.__contains__(nameOrProperty) ... ok
| CSSStyleDeclaration.__iter__ and .item ... ok
| CSSStyleDeclaration.children() ... ok
| CSSStyleDeclaration.$css2property get set del ... ok
| CSSStyleDeclaration.cssText ... ok
| CSSStyleDeclaration.getCssText(separator) ... ok
| CSSStyleDeclaration.getProperties() ... ok
| CSSStyleDeclaration.getProperty ... ok
| CSSStyleDeclaration.getPropertyCSSValue() ... ok
| CSSStyleDeclaration.getPropertyPriority() ... ok
| CSSStyleDeclaration.getPropertyValue() ... ok
| CSSStyleDeclaration.__init__() ... ok
| CSSStyleDeclaration[CSSName] ... ok
| CSSStyleDeclaration.keys() ... ok
| CSSStyleDeclaration.length ... ok
| CSSStyleDeclaration.XXX(name) ... ok
| CSSStyleDeclaration.parentRule ... ok
| CSSStyleDeclaration parse ... ok
| CSSStyleDeclaration.removeProperty() ... ok
| CSSStyleDeclaration.__repr__(), .__str__() ... ok
| CSSStyleDeclaration serialize ... ok
| CSSStyleDeclaration.setProperty(replace=) ... ok
| CSSMediaRule.cssRules.parentRule .parentStyleSheet .type ... ok
| CSSStyleRule.cssText ... ok
| CSSStyleRule (incomplete) ... ok
| CSSStyleRule.type and init ... ok
| CSSRule.parentRule .parentStyleSheet .type ... ok
| CSSRule readonly ... ok
| CSSStyleRule references ... ok
| CSSStyleRule.__repr__(), .__str__() ... ok
| CSSStyleRule.selectorList ... ok
| CSSStyleRule.selectorText ... ok
| CSSStyleRule.style ... ok
| CSSStyleSheet CDO CDC ... ok
| CSSStyleSheet NoModificationAllowedErr ... ok
| CSSStyleSheet.add() ... ok
| test_addimport (tests.test_cssstylesheet.CSSStyleSheetTestCase) ... ok
| CSSStyleSheet.cssRules ... ok
| CSSStyleSheet.cssText ... ok
| CSSStyleSheet.cssText HierarchyRequestErr ... ok
| CSSStyleSheet.cssText SyntaxErr ... ok
| CSSStyleSheet.deleteRule(rule) ... ok
| CSSStyleSheet.deleteRule(index) ... ok
| CSSStyleSheet.encoding ... ok
| CSSStyleRule (incomplete) ... ok
| CSSStyleSheet.__init__() ... ok
| CSSStyleSheet.insertRule() ... ok
| CSSStyleSheet.insertRule(@charset) ... ok
| CSSStyleSheet.insertRule(@import) ... ok
| CSSStyleSheet.insertRule(@media, @page, stylerule) ... ok
| CSSStyleSheet.insertRule(@namespace) ... ok
| CSSStyleSheet.insertRule(@ unknown, comment) ... ok
| CSSStyleSheet.__iter__() ... ok
| CSSStyleSheet.namespaces.namespaces ... ok
| CSSStyleSheet.namespaces ... ok
| CSSStyleSheet.namespaces 3 ... ok
| CSSStyleSheet.namespaces 4 ... ok
| CSSStyleSheet.namespaces 5 ... ok
| CSSStylesheet references ... ok
| CSSStyleSheet.__repr__(), .__str__() ... ok
| CSSMediaRule.cssRules.parentRule .parentStyleSheet .type ... ok
| CSSUnknownRule.cssText InvalidModificationErr ... ok
| CSSUnknownRule.cssText ... ok
| CSSUnknownRule.type and init ... ok
| CSSRule.parentRule .parentStyleSheet .type ... ok
| CSSRule readonly ... ok
| CSSUnknownRule.__repr__(), .__str__() ... ok
| test_VERSION (tests.test_cssutils.CSSutilsTestCase) ... ok
| cssutils.getUrls() ... ok
| cssutils.parseStyle() ... ok
| cssutils.replaceUrls() ... ok
| cssutils.resolveImports(sheet) ... ok
| cssutils.setSerializer() and cssutils.ser ... ok
| from cssutils import * ... ok
| CSSVariablesDeclaration.__contains__(name) ... ok
| CSSVariablesDeclaration.cssText ... ok
| CSSVariables imports ... ok
| CSSVariablesDeclaration.__init__() ... ok
| CSSVariablesDeclaration[variableName] ... ok
| CSSVariablesDeclaration.keys() ... ok
| CSSVariablesDeclaration.parentRule ... ok
| CSSVariablesDeclaration.__repr__(), .__str__() ... ok
| CSSVariablesDeclaration.xVariable() ... ok
| CSSMediaRule.cssRules.parentRule .parentStyleSheet .type ... ok
| CSSVariablesRule.cssText InvalidModificationErr ... ok
| CSSVariablesRule ... ok
| CSSVariablesRule (incomplete) ... ok
| CSSVariablesRule.__init__() ... ok
| CSSVariablesRule.media ... ok
| CSSRule.parentRule .parentStyleSheet .type ... ok
| CSSRule readonly ... ok
| CSSVariablesRule.__repr__(), .__str__() ... ok
| CSSVariablesRule.variables ... ok
| DOMImplementationCSS.createCSSStyleSheet() ... ok
| DOMImplementationCSS.createDocument() ... ok
| DOMImplementationCSS.createDocumentType() ... ok
| DOMImplementationCSS.hasFeature() ... ok
| encutils.detectXMLEncoding ... ok
| encutils.encodingByMediaType ... ok
| encutils.getEncodingInfo ... ok
| encutils.getMetaInfo ... FAIL
| encutils._getTextType ... ok
| encutils._getTextTypeByMediaType ... ok
| encutils.tryEncodings ... ok
| helper._normalize() ... ok
| helper.string() ... ok
| helper.stringvalue() ... ok
| helper.uri() ... ok
| helper.urivalue() ... ok
| CSSMediaRule.cssRules.parentRule .parentStyleSheet .type ... ok
| MarginRule.cssText InvalidModificationErr ... ok
| test_cssText (tests.test_marginrule.MarginRuleTestCase) ... ok
| MarginRule (incomplete) ... ok
| MarginRule.__init__() ... ok
| CSSRule.parentRule .parentStyleSheet .type ... ok
| CSSRule readonly ... ok
| MarginRule.__repr__(), .__str__() ... ok
| MediaList all ... ok
| MediaList.append() 2 ... ok
| MediaList.appendMedium() 1 ... ok
| MediaList.mediaText comments ... ok
| MediaList.deleteMedium() ... ok
| MediaList handheld ... ok
| MediaList.item() ... ok
| MediaList.mediaText 2 ... ok
| MediaList.__repr__(), .__str__() ... ok
| MediaList.mediaText 1 ... ok
| MediaQuery.mediaText comments ... ok
| MediaQuery.mediaText ... ok
| MediaQuery.mediaType ... ok
| MediaQuery.__repr__(), .__str__() ... ok
| cssutils.parseString(href, media) ... ok
| cssutils escapes ... ok
| CSSParser.fetcher ... ok
| IEhack: $property (not since 0.9.5b3) ... ok
| CSSParser.__init__() ... ok
| cssutils.parseString(INVALID_CSS) ... ok
| cssutils.parseString(INVALID_STRING) ... ok
| cssutils.parseString nesting ... ok
| cssutils.CSSParser(parseComments=False) ... ok
| cssutils encodings ... ok
| cssutils.parseString(special_case) ... ok
| CSSParser(validate) ... ok
| Choice.__init__() ... ok
| Choice.matches() ... ok
| Choice with nested Sequence ... ok
| Choice.reset() ... ok
| ProdParser.parse() 2 ... ok
| ProdParser.parse(keepS) ... ok
| Prod.__init__(...) ... ok
| Prod.__init__(...match=...) ... ok
| Prod.__init__(...toSeq=...) ... ok
| Prod.__init__(...toStore=...) ... ok
| Prod.matches(token) ... ok
| Sequence.__init__() ... ok
| Sequence.__init__(...minmax=...) ... ok
| Sequence.matches() ... ok
| Sequence.nextProd() ... ok
| Sequence.optional ... ok
| Sequence.reset() ... ok
| Profiles.addProfile with custom validation function ... ok
| CSS Color Module Level 3 ... ok
| Profiles.knownNames ... ok
| Profiles.profiles ... ok
| Profiles.propertiesByProfile ... ok
| Profiles.removeProfile() ... ok
| Profiles.validate() ... ok
| Profiles.validate() ... ok
| properties ... ok
| Property.validate() and Property.valid ... ok
| Property.cssText ... ok
| Property.cssValue ... ok
| Property.__init__() ... ok
| Property.literalname ... ok
| Property.name ... ok
| Property.priority ... ok
| Property.__repr__(), .__str__() ... ok
| Property.valid ... ok
| Property.value ... ok
| Selector.namespaces default ... ok
| Selector.element (TODO: RESOLVE) ... ok
| Selector.__init__() ... ok
| Selector.namespaces ... ok
| Selector.parent ... ok
| Selector.__repr__(), .__str__() ... ok
| Selector.selectorText ... ok
| Selector.specificity ... ok
| SelectorList.appendSelector() and .length ... ok
| SelectorList.__init__() and .length ... ok
| Selector.parentRule ... ok
| SelectorList.__repr__(), .__str__() ... ok
| SelectorList.selectorText ... ok
| CSSSerializer.do_CSSStyleSheet ... ok
| CSSSerializer.do_Property ... ok
| test_canonical (tests.test_serialize.CSSSerializerTestCase) ... ok
| CSSSerializer._escapestring ... ok
| Preferences.defaultAtKeyword ... ok
| Preferences.defaultPropertyName ... ok
| Preferences.defaultPropertyPriority ... ok
| Preferences.importHrefFormat ... ok
| Preferences.ident ... ok
| Preferences.indentClosingBrace ... ok
| Preferences.keepAllProperties ... ok
| Preferences.keepComments ... ok
| Preferences.keepEmptyRules ... ok
| Preferences.keepUnknownAtRules ... ok
| Preferences.keepUsedNamespaceRulesOnly ... ok
| Preferences.lineNumbers ... ok
| Preferences.lineSeparator ... ok
| Preferences.listItemSpacer ... ok
| Preferences.normalizedVarNames ... ok
| Preferences.omitLastSemicolon ... ok
| Preferences.paranthesisSpacer ... ok
| Preferences.propertyNameSpacer ... ok
| Preferences.resolveVariables ... ok
| Preferences.selectorCombinatorSpacer ... ok
| test_spacer (tests.test_serialize.PreferencesTestCase) ... ok
| Preferences.useDefaults() ... ok
| Preferences.useMinified() ... ok
| Preferences.validOnly ... ok
| CSSMediaRule.cssRules.parentRule .parentStyleSheet .type ... ok
| CSSRule.type and init ... ok
| CSSRule.parentRule .parentStyleSheet .type ... ok
| CSSRule readonly ... ok
| settings.set() ... ok
| StyleSheet.__init__() ... ok
| cssutils Tokenizer().tokenize() ... ok
| cssutils Tokenizer().tokenize(fullsheet=True) ... ok
| Base._normalize() ... ok
| Base._tokensupto2() ... ok
| util.ListSeq ... ok
| CSSFunction.cssText ... ok
| CSSFunction.__init__() ... ok
| CSSVariable.cssText ... ok
| CSSVariable.__init__() ... ok
| ColorValue.cssText ... ok
| ColorValue.__init__() ... ok
| ColorValue.red .green .blue ... ok
| DimensionValue.cssText ... ok
| DimensionValue.__init__() ... ok
| PropertyValue with comment ... ok
| PropertyValue.cssText ... ok
| PropertyValue (incomplete) ... ok
| PropertyValue.__init__() .item() .length ... ok
| PropertyValue[index] ... ok
| PropertyValue._readonly ... ok
| PropertyValue.__repr__(), .__str__() ... ok
| URIValue.absoluteUri ... ok
| URIValue.cssText ... ok
| URIValue.__init__() ... ok
| Value.cssText ... ok
| Value.__init__() ... ok
| Property.priority ... ok
|
| ======================================================================
| FAIL: encutils.getMetaInfo
| ----------------------------------------------------------------------
| Traceback (most recent call last):
|   File "/build/cssutils-rJx1Up/cssutils-0.9.10~b1/build/lib/tests/test_encutils/__init__.py", line 165, in test_getMetaInfo
|     self.assertEqual(exp, encutils.getMetaInfo(test, log=log))
| AssertionError: Tuples differ: (None, None) != ('text/html', 'ascii')
|
| First differing element 0:
| None
| text/html
|
| - (None, None)
| + ('text/html', 'ascii')
| -------------------- >> begin captured logging << --------------------
| encutils: INFO: HTML META media_type: text/html
| encutils: INFO: HTML META encoding: ascii
| encutils: INFO: HTML META media_type: text/html
| encutils: INFO: HTML META encoding: ascii
| encutils: INFO: HTML META media_type: text/html
| encutils: INFO: HTML META encoding: ascii
| encutils: INFO: HTML META media_type: text/html
| encutils: INFO: HTML META encoding: ascii
| --------------------- >> end captured logging << ---------------------
|
| ----------------------------------------------------------------------
| Ran 350 tests in 5.531s
|
| FAILED (failures=1)
| make[1]: *** [override_dh_auto_test] Error 1

-- 
Jakub Wilk



More information about the Python-modules-team mailing list