<commit_before>from unittest import expectedFailure

from ..utils import TranspileTestCase


class CollectionsModuleTests(TranspileTestCase):

    #######################################################
    # __doc__
    def test___doc__(self):
        self.assertCodeExecution("""
            import collections
            print(collections.__doc__)
            """)

    #######################################################
    # __file__
    @expectedFailure
    def test___file__(self):
        self.assertCodeExecution("""
            import collections
            print(collections.__file__)
            """)<commit_msg>Added expected failure to test__doc__<commit_after>from unittest import expectedFailure

from ..utils import TranspileTestCase


class CollectionsModuleTests(TranspileTestCase):

    #######################################################
    # __doc__
    @expectedFailure
    # expected to fail in Python version 3.4 as __doc__ for collections
    # is None until version 3.5
    def test___doc__(self):
        self.assertCodeExecution("""
            import collections
            print(collections.__doc__)
            """)

    #######################################################
    # __file__
    @expectedFailure
    def test___file__(self):
        self.assertCodeExecution("""
            import collections
            print(collections.__file__)
            """)
{'fraction_non_alphanumeric': 0.21757618710134657, 'fraction_numerical': 0.002834868887313962, 'mean_word_length': 3.0113636363636362, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7465394', 'n_tokens_mistral': 323, 'n_tokens_neox': 306, 'n_words': 71}