<commit_before># -*- coding: utf-8 -*-

import os
from .. import AbstractTestCase
from pendulum.tz import LocalTimezone


class LocalTimezoneTest(AbstractTestCase):

    def test_unix_symlink(self):
        # A ZONE setting in the target path of a symbolic linked localtime, f ex systemd distributions
        local_path = os.path.join(os.path.split(__file__)[0], '..')
        tz = LocalTimezone.get_tz_name_for_unix(
            _root=os.path.join(local_path, 'fixtures', 'tz', 'symlink')
        )

        self.assertEqual(tz.name, 'Europe/Paris')<commit_msg>Fixes local timezone tests on Windows<commit_after># -*- coding: utf-8 -*-

import os
from .. import AbstractTestCase
from pendulum.tz import LocalTimezone


class LocalTimezoneTest(AbstractTestCase):

    def test_unix_symlink(self):
        self.skip_if_windows()

        # A ZONE setting in the target path of a symbolic linked localtime, f ex systemd distributions
        local_path = os.path.join(os.path.split(__file__)[0], '..')
        tz = LocalTimezone.get_tz_name_for_unix(
            _root=os.path.join(local_path, 'fixtures', 'tz', 'symlink')
        )

        self.assertEqual(tz.name, 'Europe/Paris')
{'fraction_non_alphanumeric': 0.11252115059221658, 'fraction_numerical': 0.00338409475465313, 'mean_word_length': 3.270758122743682, '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': '1066668', 'n_tokens_mistral': 377, 'n_tokens_neox': 361, 'n_words': 89}