Page MenuHomePhabricator

exceptions_test fails (in windows)
Closed, DeclinedPublic

Description

C:\pwb\GIT\core>pwb.py tests/exceptions_tests TestDeprecatedExceptions.test_Uplo
adWarning
tests: max_retries reduced from 25 to 1
F
======================================================================
FAIL: test_UploadWarning (__main__.TestDeprecatedExceptions)
Test exceptions.UploadWarning is deprecated only.
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\tests\exceptions_tests.py", line 38, in test_UploadWarning
    'pywikibot.exceptions.UploadWarning is deprecated, '
  File "C:\pwb\GIT\core\tests\aspects.py", line 1262, in assertDeprecation
    self.assertDeprecationFile(self.expect_warning_filename)
  File "C:\pwb\GIT\core\tests\aspects.py", line 1276, in assertDeprecationFile
    self.assertEqual(item.filename, filename)
AssertionError: 'tests/exceptions_tests' != u'.\\tests\\exceptions_tests.py'

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (failures=1)

C:\pwb\GIT\core>

Event Timeline

Xqt raised the priority of this task from to Medium.
Xqt updated the task description. (Show Details)
Xqt added a project: Pywikibot.
Xqt subscribed.
Restricted Application added subscribers: Aklapper, Unknown Object (MLST). · View Herald TranscriptMay 30 2015, 3:30 PM
Xqt claimed this task.

Works for me now

Which Python version was this? This might have been caused by using tests/exceptions_tests in the command line instead of tests\exceptions_tests.